mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-15 23:47:25 -04:00
Change the number of push to align stack
This commit is contained in:
parent
f956ea8e0d
commit
0fc244cdd2
@ -26,6 +26,7 @@ struct fault_regs {
|
|||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
struct syscall_regs {
|
struct syscall_regs {
|
||||||
|
uint64_t __align;
|
||||||
uint64_t rax;
|
uint64_t rax;
|
||||||
uint64_t rbx;
|
uint64_t rbx;
|
||||||
uint64_t rcx;
|
uint64_t rcx;
|
||||||
|
@ -37,9 +37,11 @@
|
|||||||
push rcx
|
push rcx
|
||||||
push rbx
|
push rbx
|
||||||
push rax
|
push rax
|
||||||
|
push rax
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro restore_context
|
.macro restore_context
|
||||||
|
pop rax
|
||||||
pop rax
|
pop rax
|
||||||
pop rbx
|
pop rbx
|
||||||
pop rcx
|
pop rcx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user