diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/include/arch/amd64/frame.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/arch/amd64/frame.h b/sys/include/arch/amd64/frame.h index 298a836..85edea9 100644 --- a/sys/include/arch/amd64/frame.h +++ b/sys/include/arch/amd64/frame.h @@ -74,5 +74,9 @@ struct trapframe { (FRAME)->rsp = SP; \ (FRAME)->ss = 0x20 | 3; \ +#define set_frame_sp(FRAME, SP) (FRAME)->rsp = SP +#define set_frame_ip(FRAME, IP) (FRAME)->rip = IP +#define get_frame_ip(FRAME) (FRAME)->rip + #endif /* !defined(__ASSEMBLER__) */ #endif /* !_AMD64_FRAME_H_ */ |