add fast lane for driver task with higher priority
This commit is contained in:
parent
771db80f26
commit
3abf062ea0
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue