add fast lane for driver task with higher priority

This commit is contained in:
Stefan Lankes 2011-08-27 07:02:45 -07:00
parent 771db80f26
commit 3abf062ea0

View file

@ -275,7 +275,13 @@ void irq_handler(struct state *s)
#endif
leave_handler:
#if 1
// add fast lane for the driver task
if (s->int_no >= 32)
scheduler();
#else
// timer interrupt?
if ((s->int_no == 32) || (s->int_no == 123))
scheduler(); // switch to a new task
scheduler(); // switch to a new task
#endif
}