summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-01-20 03:41:30 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-01-20 03:41:30 +0000
commit5553da18201980ea91c0445a3120d60334ec5ae5 (patch)
treedbd12ee95b72c2e7e72c210a9d2f5e7216cb93c0 /sys
parent1ae17617bd8cb2d76ec211de303016c5a74f6c29 (diff)
fix quite appearent bug in cpu_swapin(), missing '&' can easily corrupt
memory, pmap structure.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/powerpc/vm_machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/powerpc/powerpc/vm_machdep.c b/sys/arch/powerpc/powerpc/vm_machdep.c
index e8e7ba2df05..eba185edefc 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.29 2001/12/17 03:19:01 drahn Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.30 2002/01/20 03:41:29 drahn Exp $ */
/* $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $ */
/*
@@ -83,7 +83,7 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
pcb->pcb_pm = p2->p_vmspace->vm_map.pmap;
pmap_extract(pmap_kernel(),
- (vm_offset_t)pcb->pcb_pm, (paddr_t *)&pcb->pcb_pmreal);
+ (vm_offset_t)pcb->pcb_pm, (paddr_t *)&pcb->pcb_pmreal);
/*
* Setup the trap frame for the new process
@@ -135,7 +135,7 @@ cpu_swapin(p)
struct pcb *pcb = &p->p_addr->u_pcb;
pmap_extract(pmap_kernel(),
- (vm_offset_t)pcb->pcb_pm, (paddr_t *)pcb->pcb_pmreal);
+ (vm_offset_t)pcb->pcb_pm, (paddr_t *)&pcb->pcb_pmreal);
}
/*