summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/pseries
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-05-14 14:08:45 +0000
committerian <ian@FreeBSD.org>2014-05-14 14:08:45 +0000
commit796f2c87ad85df08fa64cd699bc66b9054363166 (patch)
tree47b4dd928c54ad5a9bb1ca1738555cad170af43d /sys/powerpc/pseries
parentdeadfc3726d811669f361da8003352165638c410 (diff)
downloadFreeBSD-src-796f2c87ad85df08fa64cd699bc66b9054363166.zip
FreeBSD-src-796f2c87ad85df08fa64cd699bc66b9054363166.tar.gz
MFC r258268, r258271, r258272, r258274, r258275, r258427, r258694, r258696,
r258697, r258757 Do not assume a value for #address-cells when parsing the OF translations map. This allows the kernel to get farther with OpenBIOS on 64-bit CPUs. Actually look up #address-cells instead of assuming it is correlated with the Uninorth version number. #interrupt-cells belongs to the iparent, not the device parent. Add a sysctl to allow disabling resetting the OF syscons. For PCI<->PCI bridges, #address-cells may be 3. Make RTAS calls, which call setfault() to recover from machine checks, preserve any existing fault buffer. badaddr() is used only in the grackle PCI driver, so move its definition there. Clean up a spurious setfault() declaration as well. This [phyp_console] driver doesn't need the /options node, so don't check for it. Use the Open Firmware-based CPU frequency determination as a generic fallback if we can't measure CPU frequency. This is also useful on a variety of embedded systems using FDT.
Diffstat (limited to 'sys/powerpc/pseries')
-rw-r--r--sys/powerpc/pseries/phyp_console.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/powerpc/pseries/phyp_console.c b/sys/powerpc/pseries/phyp_console.c
index 2434697..79d9094 100644
--- a/sys/powerpc/pseries/phyp_console.c
+++ b/sys/powerpc/pseries/phyp_console.c
@@ -192,11 +192,9 @@ uart_phyp_cnprobe(struct consdev *cp)
{
char buf[64];
ihandle_t stdout;
- phandle_t input, opts, chosen;
+ phandle_t input, chosen;
static struct uart_phyp_softc sc;
- if ((opts = OF_finddevice("/options")) == -1)
- goto fail;
if ((chosen = OF_finddevice("/chosen")) == -1)
goto fail;
OpenPOWER on IntegriCloud