diff options
author | dfr <dfr@FreeBSD.org> | 1998-07-12 16:30:58 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-07-12 16:30:58 +0000 |
commit | f2d6c2242323d194129b413af52c028f2eca77c2 (patch) | |
tree | 82dfcc18bbee62b956fb8f858d315c1be98e0c25 /sys/powerpc | |
parent | 662a5e4c8523ffbd030c8ec77423aa69e21d1616 (diff) | |
download | FreeBSD-src-f2d6c2242323d194129b413af52c028f2eca77c2.zip FreeBSD-src-f2d6c2242323d194129b413af52c028f2eca77c2.tar.gz |
Don't bother calling pmap_emulate_reference() from cpu_fork(). It isn't
needed and it panics a DIAGNOSTIC kernel.
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/aim/vm_machdep.c | 12 | ||||
-rw-r--r-- | sys/powerpc/powerpc/vm_machdep.c | 12 |
2 files changed, 2 insertions, 22 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c index 89edb49..694df2a 100644 --- a/sys/powerpc/aim/vm_machdep.c +++ b/sys/powerpc/aim/vm_machdep.c @@ -38,7 +38,7 @@ * * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ - * $Id: vm_machdep.c,v 1.1 1998/06/10 10:53:40 dfr Exp $ + * $Id: vm_machdep.c,v 1.2 1998/06/10 19:59:41 dfr Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -129,16 +129,6 @@ cpu_fork(p1, p2) p2->p_md.md_pcbpaddr = (void*) vtophys((vm_offset_t) &up->u_pcb); /* - * Simulate a write to the process's U-area pages, - * so that the system doesn't lose badly. - * (If this isn't done, the kernel can't read or - * write the kernel stack. "Ouch!") - */ - for (i = 0; i < UPAGES; i++) - pmap_emulate_reference(p2, (vm_offset_t)up + i * PAGE_SIZE, - 0, 1); - - /* * Copy floating point state from the FP chip to the PCB * if this process has state stored there. */ diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c index 89edb49..694df2a 100644 --- a/sys/powerpc/powerpc/vm_machdep.c +++ b/sys/powerpc/powerpc/vm_machdep.c @@ -38,7 +38,7 @@ * * from: @(#)vm_machdep.c 7.3 (Berkeley) 5/13/91 * Utah $Hdr: vm_machdep.c 1.16.1.1 89/06/23$ - * $Id: vm_machdep.c,v 1.1 1998/06/10 10:53:40 dfr Exp $ + * $Id: vm_machdep.c,v 1.2 1998/06/10 19:59:41 dfr Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -129,16 +129,6 @@ cpu_fork(p1, p2) p2->p_md.md_pcbpaddr = (void*) vtophys((vm_offset_t) &up->u_pcb); /* - * Simulate a write to the process's U-area pages, - * so that the system doesn't lose badly. - * (If this isn't done, the kernel can't read or - * write the kernel stack. "Ouch!") - */ - for (i = 0; i < UPAGES; i++) - pmap_emulate_reference(p2, (vm_offset_t)up + i * PAGE_SIZE, - 0, 1); - - /* * Copy floating point state from the FP chip to the PCB * if this process has state stored there. */ |