From d8cfe83e34ed7c945c6b995c8ecdc62c00de5129 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 29 Mar 2020 14:50:38 +0000 Subject: [PATCH] common: use REG_SZ, not SZ_REG in line with mips64 port for REG_OFFSET macro --- arch/common/common-defs.h | 2 +- arch/x86_64/defs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/common/common-defs.h b/arch/common/common-defs.h index 9ac11dc..3e27ca0 100644 --- a/arch/common/common-defs.h +++ b/arch/common/common-defs.h @@ -33,6 +33,6 @@ __proc: \ .weak __alias; \ __alias = __real; -#define REG_OFFSET(__reg) (MCONTEXT_GREGS + ((__reg) * SZ_REG)) +#define REG_OFFSET(__reg) (MCONTEXT_GREGS + ((__reg) * REG_SZ)) #endif diff --git a/arch/x86_64/defs.h b/arch/x86_64/defs.h index dbbc1d6..9bcc6fd 100644 --- a/arch/x86_64/defs.h +++ b/arch/x86_64/defs.h @@ -29,7 +29,7 @@ #define MCONTEXT_GREGS (40) -#define SZ_REG (8) +#define REG_SZ (8) #include "common-defs.h"