From owner-p4-projects@FreeBSD.ORG Sun Jul 22 17:58:20 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id D990916A421; Sun, 22 Jul 2007 17:58:19 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEBA416A41A for ; Sun, 22 Jul 2007 17:58:19 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A459E13C468 for ; Sun, 22 Jul 2007 17:58:19 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6MHwJVu014237 for ; Sun, 22 Jul 2007 17:58:19 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6MHwJXD014234 for perforce@freebsd.org; Sun, 22 Jul 2007 17:58:19 GMT (envelope-from gonzo@FreeBSD.org) Date: Sun, 22 Jul 2007 17:58:19 GMT Message-Id: <200707221758.l6MHwJXD014234@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 123921 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2007 17:58:20 -0000 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)) {