mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 06:12:01 +01:00
Whoops.. We forgot to turn off the 4MB Virtual==Physical mapping at address
zero from bootstrap in the non-SMP case. Noticed by: bde
This commit is contained in:
parent
c4ace78562
commit
a8a74574b2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25194
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user