From 163f32fbfbfa2fb0744787769fb3d4865f57d8dd Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 18 May 2025 10:29:30 +0200 Subject: 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 --- dev/kernel/HALKit/AMD64/HalCommonAPI.asm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'dev/kernel/HALKit/AMD64/HalCommonAPI.asm') 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 -- cgit v1.2.3