Skip to content

Commit cb8165c

Browse files
Merge pull request #38 from Frost-Wing/codex/fix-os-userland-return-crash-and-tty-buffer-issue
Allow userland to request return-to-kernel and flush TTY input before exec
2 parents ab03b9c + 30d9afc commit cb8165c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/kernel/C/interrupts/syscalls-x86_64.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ syscall_entry:
2828
mov [rel saved_user_rsp], rsp
2929

3030
; Switch to kernel stack
31-
mov rsp, kernel_stack_top
31+
mov rsp, [rel kernel_stack_top]
3232

3333
; Build FULL iret frame manually
3434
push 0x23 ; SS (user data)

0 commit comments

Comments
 (0)