From owner-cvs-all Mon Feb 19 21:26:23 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DC94437B401; Mon, 19 Feb 2001 21:26:16 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1K5QGj55926; Mon, 19 Feb 2001 21:26:16 -0800 (PST) (envelope-from jhb) Message-Id: <200102200526.f1K5QGj55926@freefall.freebsd.org> From: John Baldwin Date: Mon, 19 Feb 2001 21:26:16 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha genassym.c swtch.s trap.c vm_machdep.c src/sys/alpha/include pcb.h src/sys/i386/i386 genassym.c machdep.c swtch.s trap.c vm_machdep.c src/sys/i386/include pcb.h src/sys/kern kern_fork.c kern_synch.c ... X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2001/02/19 21:26:16 PST Modified files: sys/alpha/alpha genassym.c swtch.s trap.c vm_machdep.c sys/alpha/include pcb.h sys/i386/i386 genassym.c machdep.c swtch.s trap.c vm_machdep.c sys/i386/include pcb.h sys/kern kern_fork.c kern_synch.c sys/sys proc.h Log: - Don't call clear_resched() in userret(), instead, clear the resched flag in mi_switch() just before calling cpu_switch() so that the first switch after a resched request will satisfy the request. - While I'm at it, move a few things into mi_switch() and out of cpu_switch(), specifically set the p_oncpu and p_lastcpu members of proc in mi_switch(), and handle the sched_lock state change across a context switch in mi_switch(). - Since cpu_switch() no longer handles the sched_lock state change, we have to setup an initial state for sched_lock in fork_exit() before we release it. Revision Changes Path 1.25 +1 -2 src/sys/alpha/alpha/genassym.c 1.23 +1 -9 src/sys/alpha/alpha/swtch.s 1.49 +1 -10 src/sys/alpha/alpha/trap.c 1.44 +1 -8 src/sys/alpha/alpha/vm_machdep.c 1.5 +1 -2 src/sys/alpha/include/pcb.h 1.106 +1 -6 src/sys/i386/i386/genassym.c 1.441 +1 -2 src/sys/i386/i386/machdep.c 1.110 +1 -23 src/sys/i386/i386/swtch.s 1.178 +1 -2 src/sys/i386/i386/trap.c 1.152 +1 -3 src/sys/i386/i386/vm_machdep.c 1.35 +1 -2 src/sys/i386/include/pcb.h 1.99 +7 -1 src/sys/kern/kern_fork.c 1.128 +9 -1 src/sys/kern/kern_synch.c 1.151 +5 -4 src/sys/sys/proc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message