summaryrefslogtreecommitdiff
path: root/sys/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/arm')
-rw-r--r--sys/arch/arm/arm/vm_machdep.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/arch/arm/arm/vm_machdep.c b/sys/arch/arm/arm/vm_machdep.c
index 2cc24b14c9a..aa4257cfd84 100644
--- a/sys/arch/arm/arm/vm_machdep.c
+++ b/sys/arch/arm/arm/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.10 2011/09/20 22:02:11 miod Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.11 2011/09/21 15:34:47 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.31 2004/01/04 11:33:29 jdolecek Exp $ */
/*
@@ -112,15 +112,13 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
#ifdef PMAP_DEBUG
if (pmap_debug_level >= 0)
- printf("cpu_fork: %p %p %p %p\n", p1, p2, curlwp, &proc0);
+ printf("cpu_fork: %p %p %p\n", p1, p2, &proc0);
#endif /* PMAP_DEBUG */
-#if 0 /* XXX */
- if (l1 == curlwp) {
+ if (p1 == curproc) {
/* Sync the PCB before we copy it. */
savectx(curpcb);
}
-#endif
/* Copy the pcb */
*pcb = p1->p_addr->u_pcb;
@@ -145,11 +143,11 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
#ifdef PMAP_DEBUG
if (pmap_debug_level >= 0) {
printf("p1->procaddr=%p p1->procaddr->u_pcb=%p pid=%d pmap=%p\n",
- p1->p_addr, &p1->p_addr->u_pcb, p1->p_lid,
- p1->p_proc->p_vmspace->vm_map.pmap);
+ p1->p_addr, &p1->p_addr->u_pcb, p1->p_pid,
+ p1->p_vmspace->vm_map.pmap);
printf("p2->procaddr=%p p2->procaddr->u_pcb=%p pid=%d pmap=%p\n",
- p2->p_addr, &p2->p_addr->u_pcb, p2->p_lid,
- p2->p_proc->p_vmspace->vm_map.pmap);
+ p2->p_addr, &p2->p_addr->u_pcb, p2->p_pid,
+ p2->p_vmspace->vm_map.pmap);
}
#endif /* PMAP_DEBUG */