aboutsummaryrefslogtreecommitdiff
path: root/src/uapi/conf.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-10-29 21:17:31 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-10-29 21:17:31 +0200
commit5976ad390a15726c3ddfacf8c8b282c8350f9554 (patch)
tree24a55fcd7e6f28d048ac074da59f428b54a81cb0 /src/uapi/conf.c
parent314bca3dc19a864c76153bfcd5a58be8c40000f9 (diff)
downloadkmi-5976ad390a15726c3ddfacf8c8b282c8350f9554.tar.gz
kmi-5976ad390a15726c3ddfacf8c8b282c8350f9554.zip
start moving towards threads always being in rpc
Diffstat (limited to 'src/uapi/conf.c')
-rw-r--r--src/uapi/conf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/uapi/conf.c b/src/uapi/conf.c
index 24a4706..6706a8a 100644
--- a/src/uapi/conf.c
+++ b/src/uapi/conf.c
@@ -12,6 +12,7 @@
#include <kmi/sizes.h>
#include <kmi/uapi.h>
#include <kmi/conf.h>
+#include <kmi/bkl.h>
#include <arch/irq.h>
#include <arch/proc.h>
@@ -160,5 +161,10 @@ SYSCALL_DEFINE0(sleep)(struct tcb *t)
/* presumably we want to wake up on an interrupt */
enable_irqs();
- return_args1(t, sleep());
+
+ bkl_unlock();
+ stat_t r = sleep();
+ bkl_lock();
+
+ return_args1(t, r);
}