From: bernie Date: Tue, 15 Mar 2005 00:20:54 +0000 (+0000) Subject: proc_schedule(): New sanity check. X-Git-Tag: 1.0.0~846 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6c7b7e46876e4e8148d58c3caaf2707df263d235;p=bertos.git proc_schedule(): New sanity check. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@395 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/kern/proc.c b/kern/proc.c index 164df21e..2abe730c 100755 --- a/kern/proc.c +++ b/kern/proc.c @@ -17,6 +17,9 @@ /*#* *#* $Log$ + *#* Revision 1.25 2005/03/15 00:20:54 bernie + *#* proc_schedule(): New sanity check. + *#* *#* Revision 1.24 2005/01/08 09:20:54 bernie *#* Remove unused variable. *#* @@ -296,6 +299,9 @@ void proc_schedule(void) /* Remember old process to save its context later */ old_process = CurrentProcess; + /* Scheduling in interrupts is a nono. */ + ASSERT(!IRQ_RUNNING()); + /* Poll on the ready queue for the first ready process */ IRQ_SAVE_DISABLE(flags); while (!(CurrentProcess = (struct Process *)REMHEAD(&ProcReadyList)))