mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 05:58:22 +00:00
scheduler: better define wakeup reasons
This commit is contained in:
@@ -113,7 +113,7 @@ void keyboard_sendpacket(keyboard_t *kb, kbpacket_t *packet) {
|
||||
|
||||
int keyboard_wait(keyboard_t *kb, kbpacket_t *packet) {
|
||||
int e = semaphore_wait(&kb->semaphore, true);
|
||||
if (e == EINTR)
|
||||
if (e == SCHED_WAKEUP_REASON_INTERRUPTED)
|
||||
return e;
|
||||
long ipl = interrupt_raiseipl(IPL_KEYBOARD);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user