Date: Mon, 19 Feb 2001 21:26:16 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> 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 ... Message-ID: <200102200526.f1K5QGj55926@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102200526.f1K5QGj55926>