diff options
author | sigsegv7 <ian@vegaa.systems> | 2023-10-04 11:42:04 -0400 |
---|---|---|
committer | sigsegv7 <ian@vegaa.systems> | 2023-10-04 11:42:04 -0400 |
commit | b480199b5ae3ee0f94c2f9df1a9ff2547a65576e (patch) | |
tree | 606cc3ed9d6d4ca81bd00408c91add893f8ac43c /sys/include | |
parent | f76e514374cf4ab41ebd94aabae37c8c2368869e (diff) |
kernel/amd64: Cleanup frame macros
Signed-off-by: sigsegv7 <ian@vegaa.systems>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/arch/amd64/frame.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/include/arch/amd64/frame.h b/sys/include/arch/amd64/frame.h index 8f7f8ca..b4ba8e7 100644 --- a/sys/include/arch/amd64/frame.h +++ b/sys/include/arch/amd64/frame.h @@ -72,7 +72,7 @@ struct trapframe { * undefined behaviour. * */ -.macro push_trapframe trapno +.macro push_trapframe trapno push %r15 push %r14 push %r13 @@ -91,7 +91,7 @@ struct trapframe { push \trapno .endm -.macro pop_trapframe trapno +.macro pop_trapframe add $8, %rsp /* Trapno */ pop %rax pop %rcx |