aboutsummaryrefslogtreecommitdiff
path: root/src/userspace
diff options
context:
space:
mode:
authorMarvin Borner2020-05-12 23:53:02 +0200
committerMarvin Borner2020-05-12 23:53:02 +0200
commit3624343800de35b9058c11186dc02dd20d98aedf (patch)
treedb9e2408a3d440bcc02f4b7e12ef597642fdaafc /src/userspace
parent3b16ca421aad772e0f40716e2fc66215d322f7f7 (diff)
Added scheduler spinlocking
I don't think it's needed though, ints are disabled anyway
Diffstat (limited to 'src/userspace')
-rw-r--r--src/userspace/programs/sh.c4
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);