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

@@ -7,9 +7,6 @@ read_ip:
# void start_kernel_thread()
.global start_kernel_thread
start_kernel_thread:
call get_thread_start_sp
movq %rax, %rsp
# STACK LAYOUT
# on_exit arg
# on_exit func
@@ -27,9 +24,5 @@ start_kernel_thread:
.global start_userspace_thread
start_userspace_thread:
call get_thread_start_sp
movq %rax, %rsp
swapgs
iretq