X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=kern%2Fproc.c;h=495ca735e5d2cedc650eedb4a848fb53b622e1ee;hb=0c154bc0927a32f77467f32aac3cc3507baa97ca;hp=24f93d481a20a74870fc5e3163ba3946a701b023;hpb=b84e872f616fe496961b7b8a9eeb672cf7fb8025;p=bertos.git diff --git a/kern/proc.c b/kern/proc.c index 24f93d48..495ca735 100755 --- a/kern/proc.c +++ b/kern/proc.c @@ -17,6 +17,9 @@ /*#* *#* $Log$ + *#* Revision 1.29 2006/02/24 01:17:05 bernie + *#* Update for new emulator. + *#* *#* Revision 1.28 2006/02/21 16:06:55 bernie *#* Cleanup/update process scheduling. *#* @@ -308,12 +311,14 @@ void proc_schedule(void) /* Remember old process to save its context later */ old_process = CurrentProcess; +#ifdef IRQ_RUNNING /* Scheduling in interrupts is a nono. */ ASSERT(!IRQ_RUNNING()); +#endif /* Poll on the ready queue for the first ready process */ IRQ_SAVE_DISABLE(flags); - while (!(CurrentProcess = (struct Process *)REMHEAD(&ProcReadyList))) + while (!(CurrentProcess = (struct Process *)list_remHead(&ProcReadyList))) { /* * Make sure we physically reenable interrupts here, no matter what