1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:07:44 +00:00

Kernel: Fix struct layout for interrupt entries on x86_64

This commit is contained in:
Gunnar Beutner 2021-06-29 10:30:37 +02:00 committed by Andreas Kling
parent 5afec84cc2
commit 36ce2a2b76
2 changed files with 7 additions and 3 deletions

View file

@ -14,7 +14,11 @@ asm(
"interrupt_common_asm_entry: \n"
// add the padding field in RegisterState
" subq $4, %rsp\n"
" movl $0, 0(%rsp)\n"
" pushq %rax\n"
" movl 12(%rsp), %eax\n"
" movl $0, 12(%rsp)\n"
" movl %eax, 8(%rsp)\n"
" popq %rax\n"
// save all the other registers
" pushq %r15\n"
" pushq %r14\n"