diff options
author | Marvin Borner | 2020-05-12 23:53:02 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-12 23:53:02 +0200 |
commit | 3624343800de35b9058c11186dc02dd20d98aedf (patch) | |
tree | db9e2408a3d440bcc02f4b7e12ef597642fdaafc /src/userspace/programs | |
parent | 3b16ca421aad772e0f40716e2fc66215d322f7f7 (diff) |
Added scheduler spinlocking
I don't think it's needed though, ints are disabled anyway
Diffstat (limited to 'src/userspace/programs')
-rw-r--r-- | src/userspace/programs/sh.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |