Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2007 17:58:19 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 123921 for review
Message-ID:  <200707221758.l6MHwJXD014234@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123921

Change 123921 by gonzo@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)) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707221758.l6MHwJXD014234>