feat: Add Process Manager, Limine Framebuffer GUI, RTL8139 Net stack, and extended UNIX commands
This commit is contained in:
@@ -37,6 +37,9 @@ syscall_entry:
|
||||
lea rsp, [rip + TSS]
|
||||
mov rsp, [rsp + 4]
|
||||
|
||||
/* Push user RSP onto thread kernel stack */
|
||||
push qword ptr [rip + cpu0_scratch_user_rsp]
|
||||
|
||||
/* Push user RIP and RFLAGS */
|
||||
push rcx
|
||||
push r11
|
||||
@@ -66,7 +69,7 @@ syscall_entry:
|
||||
pop r11
|
||||
pop rcx
|
||||
|
||||
/* Restore user RSP */
|
||||
mov rsp, [rip + cpu0_scratch_user_rsp]
|
||||
/* Restore thread-specific user RSP directly from kernel stack */
|
||||
pop rsp
|
||||
|
||||
sysretq
|
||||
|
||||
Reference in New Issue
Block a user