aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vt/hw/ofwfb/ofwfb.c
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2016-02-16 15:18:12 +0000
committerAndrew Turner <andrew@FreeBSD.org>2016-02-16 15:18:12 +0000
commit45fd18628594ac9dec327bca7b9142fbd374d309 (patch)
treeef2970757da3567fedb2a64ae083c1be0e25f35d /sys/dev/vt/hw/ofwfb/ofwfb.c
parent3884d6f8bd7e13a2b152fedc2d0d4f6de5ad17b8 (diff)
downloadsrc-45fd18628594ac9dec327bca7b9142fbd374d309.tar.gz
src-45fd18628594ac9dec327bca7b9142fbd374d309.zip
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
Notes
Notes: svn path=/head/; revision=295662
Diffstat (limited to 'sys/dev/vt/hw/ofwfb/ofwfb.c')
-rw-r--r--sys/dev/vt/hw/ofwfb/ofwfb.c3
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 c3ac185c9101..0776a8e622db 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 */