Fix switching to same task jumping to random memory
diff --git a/src/kernel/task_api.s b/src/kernel/task_api.s
index 1678969..1673866 100644
--- a/src/kernel/task_api.s
+++ b/src/kernel/task_api.s
@@ -8,9 +8,12 @@
push .after
call _do_switch_task
.after:
+ ;; add esp, 12 ; Clear the arguments
popa ; Reset everything
xor eax, eax ; Return 0
- ret
+
+ pop ebx ; This is just to make debugging easy
+ jmp ebx
[global _switch_to_task]
;; _switch_to_task(uint page_directory, uint eip, uint ebp, uint esp)