From a7259a6771c35fbaf44dd8ea8bd3b5216e74de4e Mon Sep 17 00:00:00 2001 From: "Dale S. Rahn" Date: Sun, 16 Jan 2000 22:52:23 +0000 Subject: Closer to support for UVM on powerpc, tries to execute user programs, but then fails with illegal instruction. (init or shell). --- sys/arch/powerpc/powerpc/vm_machdep.c | 10 ++++++---- 1 file 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); /* -- cgit v1.2.3