[Zion] Add a way to unwind the stack and recover from user-space faults.

This commit is contained in:
Drew Galbraith 2023-11-22 18:25:08 -08:00
parent 8ceab2ad23
commit 941d7c8d59
6 changed files with 63 additions and 0 deletions

View file

@ -8,6 +8,7 @@ jump_user_space:
mov %ax, %fs
mov %ax, %gs
mov %rsi, %rbp
pushq $0x23 # ss
pushq %rsi
pushq $0x202 # Bit 9 enables interrupts.