From b480199b5ae3ee0f94c2f9df1a9ff2547a65576e Mon Sep 17 00:00:00 2001 From: sigsegv7 Date: Wed, 4 Oct 2023 11:42:04 -0400 Subject: kernel/amd64: Cleanup frame macros Signed-off-by: sigsegv7 --- sys/include/arch/amd64/frame.h | 4 ++-- 1 file 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 -- cgit v1.2.3