diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-18 10:29:30 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-18 10:29:30 +0200 |
| commit | 163f32fbfbfa2fb0744787769fb3d4865f57d8dd (patch) | |
| tree | a28226f575585bda679d526b337324d10ce0e365 /dev/kernel/HALKit/AMD64/HalCommonAPI.asm | |
| parent | e42b9ddb9121cd69cfb6b5bc0d7efc31653b72a0 (diff) | |
feat(kernel{sched/hal}): int 3 if something is wrong in `sched_jump_to_task`
why:
- After the image's entry is done, and no exit is called.
also:
- Added sched_idle_task to CPS's API.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/HALKit/AMD64/HalCommonAPI.asm')
| -rw-r--r-- | dev/kernel/HALKit/AMD64/HalCommonAPI.asm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dev/kernel/HALKit/AMD64/HalCommonAPI.asm b/dev/kernel/HALKit/AMD64/HalCommonAPI.asm index 432f79d3..a04aeb95 100644 --- a/dev/kernel/HALKit/AMD64/HalCommonAPI.asm +++ b/dev/kernel/HALKit/AMD64/HalCommonAPI.asm @@ -99,12 +99,13 @@ sched_jump_to_task: mov r15, [rcx + 0x48] mov rax, [rcx + 0x00] - mov rsp, [rcx + 0x08] ; SP + mov rsp, [rcx + 0x08] jmp rax + int 3 ;; Never continue here. -global rtl_ne_task +global sched_idle_task -rtl_ne_task: +sched_idle_task: jmp $ ret
\ No newline at end of file |
