Date: Mon, 5 Feb 2001 11:34:25 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha interrupt.c Message-ID: <200102051934.f15JYPd62538@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2001/02/05 11:34:25 PST
Modified files:
sys/alpha/alpha interrupt.c
Log:
- Minimize the amount of duplicated code for the PREEMPTION #ifdef, it now
only covers about 3-4 lines.
- Don't lower the IPL while we are on the interrupt stack. Instead, save
the raised IPL and change the saved IPL in sched_lock to IPL_0 before
calling mi_switch(). When we are resumed, restore the saved IPL in
sched_lock to the saved raised IPL so that when we release sched_lock
we won't lower the IPL. Without this, we would get nested interrupts
that would overflow the kernel stack.
Tested by: mjacob
Revision Changes Path
1.38 +10 -28 src/sys/alpha/alpha/interrupt.c
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?200102051934.f15JYPd62538>
