commit | 172fd6389bf2bf7cb1c6691835c203403c88982c | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Sun Apr 04 19:02:36 2021 -0700 |
committer | swissChili <swisschili@fastmail.com> | Sun Apr 04 19:02:36 2021 -0700 |
tree | c66af73a983c3fe608bb713f4dea1cc21f77482c | |
parent | f01ddcc5173526b7a0472dc5a7845ac98ba78ca0 [diff] [blame] |
Fix switching to same task jumping to random memory
diff --git a/src/kernel/main.c b/src/kernel/main.c index 6a37471..355ce9f 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c
@@ -82,6 +82,10 @@ asm volatile("cli"); + switch_task(); + + kprintf("Switched task, this should have done nothing.\n"); + while (true) asm volatile("hlt");