forked from CHatingPython/towos
fix: align the stack to 16 bytes in isr stubs
This commit is contained in:
@@ -24,8 +24,14 @@ common_isr_stub:
|
|||||||
|
|
||||||
cld
|
cld
|
||||||
mov %rsp, %rdi
|
mov %rsp, %rdi
|
||||||
|
|
||||||
|
mov %rsp, %r12
|
||||||
|
and $-16, %rsp
|
||||||
|
|
||||||
call interrupt_handler
|
call interrupt_handler
|
||||||
|
|
||||||
|
mov %r12, %rsp
|
||||||
|
|
||||||
pop %r15
|
pop %r15
|
||||||
pop %r14
|
pop %r14
|
||||||
pop %r13
|
pop %r13
|
||||||
|
|||||||
Reference in New Issue
Block a user