PERFORCE change 123921 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Sun Jul 22 17:58:20 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123921

Change 123921 by gonzo at gonzo_jeeves on 2007/07/22 17:57:56

	o cpu_switch now accepts three arguments - 
	    the third one is a new lock.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/vm_machdep.c#15 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/vm_machdep.c#15 (text+ko) ====

@@ -102,7 +102,7 @@
 
 	/*
 	 * DO NOT ENABLE ANY INTERRUPTS HERE: 
-	 *	after cpu_throw we're supposed to be with sched_lock locked
+	 *	after cpu_throw we're supposed to be with td_lock locked
 	 *	and this means - no interrupts enabled.
 	 */	 
 	td2->td_pcb->pcb_regs[PCB_REG_SR] = 0;
@@ -118,7 +118,7 @@
 	td2->td_frame->tf_regs[TF_A3] = 0;
 
 	/* 
-	 * Setup to release sched_lock in fork_exit(). By unlocking
+	 * Setup to release spin count in fork_exit(). By unlocking
 	 * sched_lock we'll enable interrupts and unmask timer 
 	 * interrupt (HW IRQ5)
 	 */
@@ -131,7 +131,7 @@
 }
 
 void
-cpu_switch(struct thread *old, struct thread *new)
+cpu_switch(struct thread *old, struct thread *new, struct mtx * new_lock)
 {
 
 	if (!savectx(old->td_pcb)) {


More information about the p4-projects mailing list