From df00aec744d7e153f2cfe0217e73f39c2779ce71 Mon Sep 17 00:00:00 2001 From: briggs Date: Mon, 27 Jan 1997 13:27:17 +0000 Subject: [PATCH] NetBSD PR#3147. From Walter Ruetten--walter@ghpc8.ihf.rwth-aachen.de. - Truncate video address in PTE. Apparently some cards use wierd offsets. --- sys/arch/mac68k/mac68k/pmap_bootstrap.c | 4 ++-- 1 file 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; -- 2.20.1