diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-09-09 13:40:53 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-09-09 13:40:53 +0000 |
commit | 6fa69bbb0bce573d2fe9fee77bf5b8ecfc921a0f (patch) | |
tree | 176f8523a38c4cd1d468893d2fbef9ee6318fb98 | |
parent | 62b453e543862c477058f22dfd7d6a7b72e79281 (diff) | |
download | FreeBSD-src-6fa69bbb0bce573d2fe9fee77bf5b8ecfc921a0f.zip FreeBSD-src-6fa69bbb0bce573d2fe9fee77bf5b8ecfc921a0f.tar.gz |
Revert r255420. This seems to break some Powermac systems and will be
revisited much later.
Pointy hat to: me
Approved by: re (kib, implicit due to breakage 10 minutes ago)
-rw-r--r-- | sys/powerpc/ofw/ofw_syscons.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/powerpc/ofw/ofw_syscons.c b/sys/powerpc/ofw/ofw_syscons.c index fe8444c..84ba302 100644 --- a/sys/powerpc/ofw/ofw_syscons.c +++ b/sys/powerpc/ofw/ofw_syscons.c @@ -218,7 +218,6 @@ ofwfb_configure(int flags) ihandle_t stdout; phandle_t node; uint32_t fb_phys; - ssize_t proplen; int depth; int disable; int len; @@ -265,21 +264,12 @@ ofwfb_configure(int flags) } else return (0); - if (OF_getproplen(node, "height") != sizeof(sc->sc_height) || - OF_getproplen(node, "width") != sizeof(sc->sc_width)) - return (0); - sc->sc_depth = depth; sc->sc_node = node; sc->sc_console = 1; - sc->sc_stride = -1; OF_getprop(node, "height", &sc->sc_height, sizeof(sc->sc_height)); OF_getprop(node, "width", &sc->sc_width, sizeof(sc->sc_width)); - proplen = OF_getprop(node, "linebytes", &sc->sc_stride, - sizeof(sc->sc_stride)); - if (proplen != sizeof(sc->sc_stride) || - sc->sc_stride < sc->sc_width*sc->sc_depth/4) - sc->sc_stride = sc->sc_width*sc->sc_depth/4; + OF_getprop(node, "linebytes", &sc->sc_stride, sizeof(sc->sc_stride)); /* * Grab the physical address of the framebuffer, and then map it @@ -288,8 +278,6 @@ ofwfb_configure(int flags) * * XXX We assume #address-cells is 1 at this point. */ - if (OF_getproplen(node, "address") != sizeof(fb_phys)) - return (0); OF_getprop(node, "address", &fb_phys, sizeof(fb_phys)); bus_space_map(&bs_be_tag, fb_phys, sc->sc_height * sc->sc_stride, |