summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/alpha/alpha/vm_machdep.c5
-rw-r--r--sys/arch/amd64/amd64/vm_machdep.c7
-rw-r--r--sys/arch/arm/arm/vm_machdep.c5
-rw-r--r--sys/arch/i386/i386/vm_machdep.c7
-rw-r--r--sys/arch/sparc64/sparc64/vm_machdep.c9
5 files changed, 10 insertions, 23 deletions
diff --git a/sys/arch/alpha/alpha/vm_machdep.c b/sys/arch/alpha/alpha/vm_machdep.c
index eda0437fb46..9436f2d09bf 100644
--- a/sys/arch/alpha/alpha/vm_machdep.c
+++ b/sys/arch/alpha/alpha/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.35 2007/10/10 15:53:51 art Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.36 2007/10/13 07:18:30 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.55 2000/03/29 03:49:48 simonb Exp $ */
/*
@@ -96,9 +96,6 @@ cpu_coredump(p, vp, cred, chdr)
/*
* cpu_exit is called as the last action during exit.
- * We block interrupts and call switch_exit. switch_exit switches
- * to proc0's PCB and stack, then jumps into the middle of cpu_switch,
- * as if it were switching from proc0.
*/
void
cpu_exit(p)
diff --git a/sys/arch/amd64/amd64/vm_machdep.c b/sys/arch/amd64/amd64/vm_machdep.c
index 1b6fa8463b8..178a5c49d05 100644
--- a/sys/arch/amd64/amd64/vm_machdep.c
+++ b/sys/arch/amd64/amd64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.11 2007/10/10 15:53:51 art Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.12 2007/10/13 07:18:32 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.1 2003/04/26 18:39:33 fvdl Exp $ */
/*-
@@ -154,9 +154,8 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack, size_t stacksize,
/*
* cpu_exit is called as the last action during exit.
*
- * We clean up a little and then call switch_exit() with the old proc as an
- * argument. switch_exit() first switches to proc0's context, and finally
- * jumps into switch() to wait for another process to wake up.
+ * We clean up a little and then call sched_exit() with the old proc as an
+ * argument.
*/
void
cpu_exit(struct proc *p)
diff --git a/sys/arch/arm/arm/vm_machdep.c b/sys/arch/arm/arm/vm_machdep.c
index a3b4115793b..cd2a0d8804b 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.7 2007/10/10 15:53:51 art Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.8 2007/10/13 07:18:32 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.31 2004/01/04 11:33:29 jdolecek Exp $ */
/*
@@ -185,9 +185,6 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
void
cpu_exit(struct proc *p)
{
-#if 0
- pmap_update(p->p_vmspace->vm_map.pmap); /* XXX DSR help stability */
-#endif
pmap_deactivate(p);
sched_exit(p);
}
diff --git a/sys/arch/i386/i386/vm_machdep.c b/sys/arch/i386/i386/vm_machdep.c
index a12b279cfb1..3e009a73ca7 100644
--- a/sys/arch/i386/i386/vm_machdep.c
+++ b/sys/arch/i386/i386/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.53 2007/10/10 15:53:51 art Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.54 2007/10/13 07:18:32 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.61 1996/05/03 19:42:35 christos Exp $ */
/*-
@@ -134,11 +134,6 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack, size_t stacksize,
/*
* cpu_exit is called as the last action during exit.
- *
- * We clean up a little and then call switch_exit() with the old proc as an
- * argument. switch_exit() first switches to proc0's context, then does the
- * vmspace_free() and kmem_free() that we don't do here, and finally jumps
- * into switch() to wait for another process to wake up.
*/
void
cpu_exit(struct proc *p)
diff --git a/sys/arch/sparc64/sparc64/vm_machdep.c b/sys/arch/sparc64/sparc64/vm_machdep.c
index 88ba247878a..ac50d35e829 100644
--- a/sys/arch/sparc64/sparc64/vm_machdep.c
+++ b/sys/arch/sparc64/sparc64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.16 2007/10/10 15:53:53 art Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.17 2007/10/13 07:18:32 miod Exp $ */
/* $NetBSD: vm_machdep.c,v 1.38 2001/06/30 00:02:20 eeh Exp $ */
/*
@@ -310,10 +310,9 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
/*
* cpu_exit is called as the last action during exit.
*
- * We clean up a little and then call switchexit() with the old proc
- * as an argument. switchexit() switches to the idle context, schedules
- * the old vmspace and stack to be freed, then selects a new process to
- * run.
+ * We clean up a little and then call sched_exit() with the old proc
+ * as an argument. sched_exit() schedules the old vmspace and stack
+ * to be freed, then selects a new process to run.
*/
void
cpu_exit(struct proc *p)