diff options
author | Marvin Borner | 2020-05-11 22:45:08 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-11 22:45:08 +0200 |
commit | fe4280eb69fbeb386b5442b3aeb515dde1c117ec (patch) | |
tree | 5837a5af36629ddad0215c248f30cd8ce6bb385c /src/userspace/programs/init.c | |
parent | 9b959a402f1998a9c608b917034cae81bd03b088 (diff) |
Some scheduling improvements
And other stuff..
Diffstat (limited to 'src/userspace/programs/init.c')
-rw-r--r-- | src/userspace/programs/init.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/userspace/programs/init.c b/src/userspace/programs/init.c index 019e5c3..7a4900b 100644 --- a/src/userspace/programs/init.c +++ b/src/userspace/programs/init.c @@ -21,10 +21,10 @@ int interrupts_enabled() void main() { - /* if (get_pid() != 1) { */ - /* printf("Wrong PID!\n"); */ - /* exit(1); */ - /* } */ + if (get_pid() != 1) { + printf("Wrong PID!\n"); + exit(1); + } if (interrupts_enabled()) printf("INTs enabled :)\n"); @@ -38,12 +38,9 @@ void main() // TODO: Fix occasional race conditions with cli/sti // TODO: Fix scheduler turning off at some point spawn("/bin/sh"); - if (interrupts_enabled()) - printf("INTs enabled :)\n"); - else - printf("INTs disabled :(\n"); + printf("Looping in init\n"); while (1) { - printf("B"); + //printf("B"); }; }
\ No newline at end of file |