diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-02 21:58:34 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-02 21:58:34 +0300 |
| commit | e06772a964e269d2d9abcb43a1edd868a62d4610 (patch) | |
| tree | 7e41a2898a3ebfcaa837732b31045561876b429d /src/uapi/conf.c | |
| parent | 8a3452098267e1af127d6c4f1836a9d82cd23f38 (diff) | |
| download | kmi-e06772a964e269d2d9abcb43a1edd868a62d4610.tar.gz kmi-e06772a964e269d2d9abcb43a1edd868a62d4610.zip | |
enable irqs when we sleep or swap threads
+ Also swap checks if thread is running
Diffstat (limited to 'src/uapi/conf.c')
| -rw-r--r-- | src/uapi/conf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uapi/conf.c b/src/uapi/conf.c index 7925616..242239c 100644 --- a/src/uapi/conf.c +++ b/src/uapi/conf.c @@ -126,5 +126,7 @@ SYSCALL_DEFINE0(sleep)(struct tcb *t) if (!(has_cap(t->caps, CAP_POWER))) return_args1(t, ERR_PERM); + /* presumably we want to wake up on an interrupt */ + enable_irqs(); return_args1(t, sleep()); } |
