From 6c7b7e46876e4e8148d58c3caaf2707df263d235 Mon Sep 17 00:00:00 2001 From: bernie Date: Tue, 15 Mar 2005 00:20:54 +0000 Subject: [PATCH] proc_schedule(): New sanity check. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@395 38d2e660-2303-0410-9eaa-f027e97ec537 --- kern/proc.c | 6 ++++++ 1 file changed, 6 insertions(+) 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))) -- 2.25.1