mirror of
https://github.com/ish-app/ish.git
synced 2026-02-01 14:32:26 +00:00
Save and restore all the clobbered registers
This commit is contained in:
parent
2cfccebb75
commit
31edab5849
@ -10,6 +10,9 @@ jit_enter:
|
||||
push %rbp
|
||||
push %rbx
|
||||
push %r12
|
||||
push %r13
|
||||
push %r14
|
||||
push %r15
|
||||
leaq JIT_BLOCK_code(%rdi), %_ip
|
||||
movq %rsi, %_cpu
|
||||
leaq TLB_entries(%rdx), %_tlb
|
||||
@ -41,6 +44,9 @@ jit_exit:
|
||||
movl %_esp, CPU_esp(%_cpu)
|
||||
# TODO more of those
|
||||
movl %_eip, CPU_eip(%_cpu)
|
||||
pop %r15
|
||||
pop %r14
|
||||
pop %r13
|
||||
pop %r12
|
||||
pop %rbx
|
||||
pop %rbp
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user