From 2411cdfb54e15a1867db1eead33a06fdd292dbbd Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 29 Mar 2020 14:27:19 +0000 Subject: [PATCH] common: add REG_OFFSET accesso --- arch/common/common-defs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/common/common-defs.h b/arch/common/common-defs.h index 0dbb89c..9ac11dc 100644 --- a/arch/common/common-defs.h +++ b/arch/common/common-defs.h @@ -33,4 +33,6 @@ __proc: \ .weak __alias; \ __alias = __real; +#define REG_OFFSET(__reg) (MCONTEXT_GREGS + ((__reg) * SZ_REG)) + #endif