summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k
diff options
context:
space:
mode:
authorbriggs <briggs@cvs.openbsd.org>1997-01-27 13:27:18 +0000
committerbriggs <briggs@cvs.openbsd.org>1997-01-27 13:27:18 +0000
commit040964c5d3b9623d79d2b6d7ba581cc813028d83 (patch)
tree3775b012f795f2483f02bbd0859c0190a43bf890 /sys/arch/mac68k
parentc88c8d0e56e1a9e2c05c8ec488b5ac7dbf5cb834 (diff)
NetBSD PR#3147. From Walter Ruetten--walter@ghpc8.ihf.rwth-aachen.de.
- Truncate video address in PTE. Apparently some cards use wierd offsets.
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r--sys/arch/mac68k/mac68k/pmap_bootstrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mac68k/mac68k/pmap_bootstrap.c b/sys/arch/mac68k/mac68k/pmap_bootstrap.c
index 6f7a21eb312..aa245d51770 100644
--- a/sys/arch/mac68k/mac68k/pmap_bootstrap.c
+++ b/sys/arch/mac68k/mac68k/pmap_bootstrap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_bootstrap.c,v 1.7 1997/01/24 01:35:52 briggs Exp $ */
+/* $OpenBSD: pmap_bootstrap.c,v 1.8 1997/01/27 13:27:17 briggs Exp $ */
/* $NetBSD: pmap_bootstrap.c,v 1.30 1997/01/07 07:44:01 scottr Exp $ */
/*
@@ -394,7 +394,7 @@ pmap_bootstrap(nextpa, firstpa)
if (vidlen) {
pte = PA2VA(vidpa, u_int *);
epte = pte + VIDMAPSIZE;
- protopte = mac68k_vidphys | PG_RW | PG_V | PG_CI;
+ protopte = (mac68k_vidphys & ~PGOFSET) | PG_RW | PG_V | PG_CI;
while (pte < epte) {
*pte++ = protopte;
protopte += NBPG;