From a8a74574b2e2ebfc5542f083310869539389cdb0 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 27 Apr 1997 12:11:43 +0000 Subject: [PATCH] Whoops.. We forgot to turn off the 4MB Virtual==Physical mapping at address zero from bootstrap in the non-SMP case. Noticed by: bde --- sys/amd64/amd64/pmap.c | 5 ++++- sys/i386/i386/pmap.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 3f218646416..97567750b90 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.141 1997/04/13 03:35:30 dyson Exp $ + * $Id: pmap.c,v 1.142 1997/04/26 11:45:19 peter Exp $ */ /* @@ -352,6 +352,9 @@ pmap_bootstrap(firstaddr, loadaddr) virtual_avail = va; *(int *) CMAP1 = *(int *) CMAP2 = 0; +#if !defined(SMP) + *(int *) PTD = 0; +#endif invltlb(); diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 3f218646416..97567750b90 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.141 1997/04/13 03:35:30 dyson Exp $ + * $Id: pmap.c,v 1.142 1997/04/26 11:45:19 peter Exp $ */ /* @@ -352,6 +352,9 @@ pmap_bootstrap(firstaddr, loadaddr) virtual_avail = va; *(int *) CMAP1 = *(int *) CMAP2 = 0; +#if !defined(SMP) + *(int *) PTD = 0; +#endif invltlb();