aboutsummaryrefslogtreecommitdiff
path: root/src/uapi/conf.c
diff options
context:
space:
mode:
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);
}