[Zion] Add a way to unwind the stack and recover from user-space faults.
This commit is contained in:
parent
8ceab2ad23
commit
941d7c8d59
6 changed files with 63 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue