diff options
author | andrew <andrew@FreeBSD.org> | 2016-02-16 15:18:12 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-02-16 15:18:12 +0000 |
commit | 05274f8a8b8da8cd3adf7aa6d8a877992dbc44d2 (patch) | |
tree | ef2970757da3567fedb2a64ae083c1be0e25f35d /sys/dev/vt | |
parent | 284f6cde63476cc099b272baa04262937e75e289 (diff) | |
download | FreeBSD-src-05274f8a8b8da8cd3adf7aa6d8a877992dbc44d2.zip FreeBSD-src-05274f8a8b8da8cd3adf7aa6d8a877992dbc44d2.tar.gz |
Allow callers of OF_decode_addr to get the size of the found mapping. This
will allow for code that uses the old fdt_get_range and fdt_regsize
functions to find a range, map it, access, then unmap to replace this, up
to and including the map, with a call to OF_decode_addr.
As this function should only be used in the early boot code the unmap is
mostly do document we no longer need the mapping as it's a no-op, at least
on arm.
Reviewed by: jhibbits
Sponsored by: ABT Systems Ltd
Differential Revision: https://reviews.freebsd.org/D5258
Diffstat (limited to 'sys/dev/vt')
-rw-r--r-- | sys/dev/vt/hw/ofwfb/ofwfb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/vt/hw/ofwfb/ofwfb.c b/sys/dev/vt/hw/ofwfb/ofwfb.c index c3ac185..0776a8e 100644 --- a/sys/dev/vt/hw/ofwfb/ofwfb.c +++ b/sys/dev/vt/hw/ofwfb/ofwfb.c @@ -480,7 +480,8 @@ ofwfb_init(struct vt_device *vd) return (CN_DEAD); #if defined(__powerpc__) - OF_decode_addr(node, fb_phys, &sc->sc_memt, &sc->fb.fb_vbase); + OF_decode_addr(node, fb_phys, &sc->sc_memt, &sc->fb.fb_vbase, + NULL); sc->fb.fb_pbase = sc->fb.fb_vbase; /* 1:1 mapped */ #ifdef __powerpc64__ /* Real mode under a hypervisor probably doesn't cover FB */ |