K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-05T19:34:25.000000Z K 7 svn:log V 525 - 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 END