diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-10-28 13:07:06 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-10-28 13:07:06 +0200 |
commit | afc9aa79fca9bb7f3e83832cafa8f7bdc662017d (patch) | |
tree | 1309c85dca0ed526d48d3f23871f83cbcf60d1c3 /x86_64 | |
parent | 0ea8f34d6b2d37cb5027a9cd8d143b0d6b701613 (diff) | |
download | gnumach-afc9aa79fca9bb7f3e83832cafa8f7bdc662017d.tar.gz gnumach-afc9aa79fca9bb7f3e83832cafa8f7bdc662017d.tar.bz2 gnumach-afc9aa79fca9bb7f3e83832cafa8f7bdc662017d.zip |
locore: Homogeneize 32bit and 64bit
Diffstat (limited to 'x86_64')
-rw-r--r-- | x86_64/locore.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/x86_64/locore.S b/x86_64/locore.S index af3809ee..296a8e28 100644 --- a/x86_64/locore.S +++ b/x86_64/locore.S @@ -711,11 +711,13 @@ trap_from_kernel: pushq %rbx /* save old stack */ movq %rbx,%rdi /* pass as parameter */ call EXT(kernel_trap) /* to kernel trap routine */ + popq %rsp /* return to old stack */ #else /* MACH_KDB || MACH_TTD */ movq %rsp,%rdi /* pass parameter */ call EXT(kernel_trap) /* to kernel trap routine */ + #endif /* MACH_KDB || MACH_TTD */ jmp _return_from_kernel |