Kernel: Remove unnecessary stack pointer loading

Any time I started a thread I was loading the stack pointer which is
already correctly passed :D
This commit is contained in:
2026-04-04 22:50:58 +03:00
parent a29681a524
commit 9d83424346
5 changed files with 2 additions and 26 deletions

View File

@@ -63,7 +63,7 @@ sys_fork_trampoline:
call read_ip
testl %eax, %eax
jz .reload_stack
jz .done
movl %esp, %ebx
@@ -79,9 +79,3 @@ sys_fork_trampoline:
popl %ebx
popl %ebp
ret
.reload_stack:
call get_thread_start_sp
movl %eax, %esp
xorl %eax, %eax
jmp .done