diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-01-16 22:52:23 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-01-16 22:52:23 +0000 |
commit | a7259a6771c35fbaf44dd8ea8bd3b5216e74de4e (patch) | |
tree | 0af3f683e4463cbf057be123bd19ef87b8cd6ced | |
parent | 754142ba71f959b32c4edb03933e33d7cb49a127 (diff) |
Closer to support for UVM on powerpc, tries to execute user programs, but
then fails with illegal instruction. (init or shell).
-rw-r--r-- | sys/arch/powerpc/powerpc/vm_machdep.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/powerpc/powerpc/vm_machdep.c b/sys/arch/powerpc/powerpc/vm_machdep.c index 673745c05b4..88133ac3ef0 100644 --- a/sys/arch/powerpc/powerpc/vm_machdep.c +++ b/sys/arch/powerpc/powerpc/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.10 2000/01/14 05:42:17 rahnds Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.11 2000/01/16 22:52:22 rahnds Exp $ */ /* $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $ */ /* @@ -68,10 +68,12 @@ cpu_fork(p1, p2, stack, stacksize) save_fpu(p1); *pcb = p1->p_addr->u_pcb; +#ifdef UVM + pcb->pcb_pm = p2->p_vmspace->vm_map.pmap; +#else pcb->pcb_pm = &p2->p_vmspace->vm_pmap; - /* - pcb->pcb_pm = &p2->p_vmspace->vm_map.pmap; - */ +#endif + pcb->pcb_pmreal = (struct pmap *)pmap_extract(pmap_kernel(), (vm_offset_t)pcb->pcb_pm); /* |