diff options
author | jhb <jhb@FreeBSD.org> | 2001-04-26 23:52:40 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-04-26 23:52:40 +0000 |
commit | 8ffc16e89190c82e83b9b8de8efe0efada30fb8d (patch) | |
tree | 02e0893449e0f4997447726871ce40faed42a9e7 /sys/powerpc/aim | |
parent | 043cc81847a0fa451452dedcc8dcac894cd6f819 (diff) | |
download | FreeBSD-src-8ffc16e89190c82e83b9b8de8efe0efada30fb8d.zip FreeBSD-src-8ffc16e89190c82e83b9b8de8efe0efada30fb8d.tar.gz |
Initialize p_md.md_kernnest to 1 for newly fork'd processes since they
start off in the kernel.
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r-- | sys/powerpc/aim/vm_machdep.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c index 4ecff4b..edc2638 100644 --- a/sys/powerpc/aim/vm_machdep.c +++ b/sys/powerpc/aim/vm_machdep.c @@ -208,6 +208,12 @@ cpu_fork(p1, p2, flags) up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a1 */ up->u_pcb.pcb_context[7] = (u_int64_t)fork_trampoline; /* ra: assembly magic */ +#ifdef SMP + /* + * We start off at a nesting level of 1 within the kernel. + */ + p2->p_md.md_kernnest = 1; +#endif } } |