scheduler: better define wakeup reasons

This commit is contained in:
Matheus
2024-03-30 18:39:26 -03:00
parent 84c20586c2
commit 52ab80bc9a
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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);