diff options
author | alc <alc@FreeBSD.org> | 1999-07-21 18:02:27 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-07-21 18:02:27 +0000 |
commit | 279eafd09f2514d288cf449bcb7edca19ea31d50 (patch) | |
tree | 2b71e9fdd68c718169f98753b2d8da9e09b69bf8 /sys/vm/pmap.h | |
parent | cd7ecc6fc022e270d89e62000744e4a6d41d0465 (diff) | |
download | FreeBSD-src-279eafd09f2514d288cf449bcb7edca19ea31d50.zip FreeBSD-src-279eafd09f2514d288cf449bcb7edca19ea31d50.tar.gz |
Fix the following problem:
When creating new processes (or performing exec), the new page
directory is initialized too early. The kernel might grow before
p_vmspace is initialized for the new process. Since pmap_growkernel
doesn't yet know about the new page directory, it isn't updated, and
subsequent use causes a failure.
The fix is (1) to clear p_vmspace early, to stop pmap_growkernel
from stomping on memory, and (2) to defer part of the initialization
of new page directories until p_vmspace is initialized.
PR: kern/12378
Submitted by: tegge
Reviewed by: dfr
Diffstat (limited to 'sys/vm/pmap.h')
-rw-r--r-- | sys/vm/pmap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h index 0e7d1ae..32d1846 100644 --- a/sys/vm/pmap.h +++ b/sys/vm/pmap.h @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: pmap.h,v 1.29 1999/04/05 19:38:29 julian Exp $ + * $Id: pmap.h,v 1.30 1999/04/23 20:29:57 dt Exp $ */ /* @@ -121,6 +121,7 @@ void pmap_pageable __P((pmap_t, vm_offset_t, vm_offset_t, vm_offset_t pmap_phys_address __P((int)); void pmap_pinit __P((pmap_t)); void pmap_pinit0 __P((pmap_t)); +void pmap_pinit2 __P((pmap_t)); void pmap_protect __P((pmap_t, vm_offset_t, vm_offset_t, vm_prot_t)); void pmap_qenter __P((vm_offset_t, vm_page_t *, int)); |