summaryrefslogtreecommitdiff
path: root/sys/dev/vt/hw/ofwfb/ofwfb.c
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2018-03-07 17:08:07 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2018-03-07 17:08:07 +0000
commitf9edb09d70e422a1a0e7a931e32f2a0366e91b39 (patch)
treecec5fbbb98349ba3b81efdd468c8d8e563b706ee /sys/dev/vt/hw/ofwfb/ofwfb.c
parent2e9c3a4f99bcf840d57cdc541ed2bd071609e8ee (diff)
downloadsrc-test-f9edb09d70e422a1a0e7a931e32f2a0366e91b39.tar.gz
src-test-f9edb09d70e422a1a0e7a931e32f2a0366e91b39.zip
Notes
Diffstat (limited to 'sys/dev/vt/hw/ofwfb/ofwfb.c')
-rw-r--r--sys/dev/vt/hw/ofwfb/ofwfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vt/hw/ofwfb/ofwfb.c b/sys/dev/vt/hw/ofwfb/ofwfb.c
index b974803bffeea..5474a6c0cbe40 100644
--- a/sys/dev/vt/hw/ofwfb/ofwfb.c
+++ b/sys/dev/vt/hw/ofwfb/ofwfb.c
@@ -489,7 +489,7 @@ ofwfb_init(struct vt_device *vd)
#if defined(__powerpc__)
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 */
+ sc->fb.fb_pbase = sc->fb.fb_vbase & ~DMAP_BASE_ADDRESS;
#ifdef __powerpc64__
/* Real mode under a hypervisor probably doesn't cover FB */
if (!(mfmsr() & (PSL_HV | PSL_DR)))