From 3624343800de35b9058c11186dc02dd20d98aedf Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 12 May 2020 23:53:02 +0200 Subject: Added scheduler spinlocking I don't think it's needed though, ints are disabled anyway --- src/userspace/programs/sh.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/userspace/programs') diff --git a/src/userspace/programs/sh.c b/src/userspace/programs/sh.c index d1ae1f8..2575c26 100644 --- a/src/userspace/programs/sh.c +++ b/src/userspace/programs/sh.c @@ -28,6 +28,10 @@ int interrupts_enabled() void main() { printf("Shell started\n"); + if (interrupts_enabled()) + printf("INTs enabled :)\n"); + else + printf("INTs disabled :(\n"); //syscall_map(MAP_KEYBOARD, (u32)&test); -- cgit v1.2.3