it's a trap!

This commit is contained in:
julianb0 2019-07-10 12:28:20 +02:00
parent 6954e4311e
commit a698c638c1
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62
2 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@ TrapHandlers.epilog:
mov ax1, $rax
mov ax2, rax
call RFS.StoreReg
mov ax1, $rdx
mov ax2, rdx
call RFS.StoreReg

View File

@ -6,11 +6,11 @@ TRAP0_STACK := 0x300000
trap0_handler:
.init:
mov rcx, .impl
mov rcx, .text
mov rbp, TRAP0_STACK
jmp TrapHandlers.prolog
.impl:
.text:
mov ax0, r12
mov ax1, $rax
call RFS.LoadReg