diff options
Diffstat (limited to 'sys/include/arch')
-rw-r--r-- | sys/include/arch/aarch64/frame.h | 2 | ||||
-rw-r--r-- | sys/include/arch/amd64/frame.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/arch/aarch64/frame.h b/sys/include/arch/aarch64/frame.h index ec11533..fa4d33d 100644 --- a/sys/include/arch/aarch64/frame.h +++ b/sys/include/arch/aarch64/frame.h @@ -93,4 +93,6 @@ struct trapframe { lreg_t pc; }; +#define TF_IP(TFP) ((TFP)->pc) + #endif /* !_MACHINE_FRAME_H_ */ diff --git a/sys/include/arch/amd64/frame.h b/sys/include/arch/amd64/frame.h index 31dcdef..2bd9a7c 100644 --- a/sys/include/arch/amd64/frame.h +++ b/sys/include/arch/amd64/frame.h @@ -58,4 +58,6 @@ struct trapframe { uint64_t ss; }; +#define TF_IP(TFP) ((TFP)->rip) + #endif /* !_MACHINE_FRAME_H_ */ |