Subject: fix in pmap_bootstrap.c (hp300)
To: None <netbsd-bugs@NetBSD.ORG>
From: Masaru Oki <oki@fs.telcom.oki.co.jp>
List: netbsd-bugs
Date: 10/24/1994 18:26:57
In pmap_bootstrap(), there is code of validate PTEs for
kernel text pages. but, last 2 pages are invalidate.

fix:

--- pmap_bootstrap.c~	Mon Oct 24 09:43:14 1994
+++ pmap_bootstrap.c	Mon Oct 24 09:42:42 1994
@@ -294,7 +294,7 @@
 	 * Validate PTEs for kernel text (RO)
 	 */
 	pte = &((u_int *)kptpa)[hp300_btop(KERNBASE)];
-	epte = &pte[hp300_btop(hp300_trunc_page(&etext))];
+	epte = &pte[hp300_btop(hp300_trunc_page(&etext) + NBPG - 1) + 1];
 #if defined(KGDB) || defined(DDB)
 	protopte = firstpa | PG_RW | PG_V;	/* XXX RW for now */
 #else

Masaru Oki
oki@fs.telcom.oki.co.jp