Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/arm Provide _UC_REGS_* defines for all registers



details:   https://anonhg.NetBSD.org/src/rev/dd6eecfd0d03
branches:  trunk
changeset: 945223:dd6eecfd0d03
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Oct 24 07:03:11 2020 +0000

description:
Provide _UC_REGS_* defines for all registers

diffstat:

 lib/libc/arch/arm/genassym.cf |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r f72803523bd0 -r dd6eecfd0d03 lib/libc/arch/arm/genassym.cf
--- a/lib/libc/arch/arm/genassym.cf     Sat Oct 24 07:03:00 2020 +0000
+++ b/lib/libc/arch/arm/genassym.cf     Sat Oct 24 07:03:11 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: genassym.cf,v 1.2 2013/04/30 12:24:31 skrll Exp $
+#      $NetBSD: genassym.cf,v 1.3 2020/10/24 07:03:11 skrll Exp $
 
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -33,5 +33,18 @@
 include <ucontext.h>
 
 define _UC_REGS_R0     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R0])
+define _UC_REGS_R1     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R1])
+define _UC_REGS_R2     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R2])
+define _UC_REGS_R3     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R3])
+define _UC_REGS_R4     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R4])
+define _UC_REGS_R5     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R5])
+define _UC_REGS_R6     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R6])
+define _UC_REGS_R7     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R7])
+define _UC_REGS_R8     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R8])
+define _UC_REGS_R9     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R9])
+define _UC_REGS_R10    offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R10])
+define _UC_REGS_R11    offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R11])
+define _UC_REGS_R12    offsetof(ucontext_t, uc_mcontext.__gregs[_REG_R12])
 define _UC_REGS_SP     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_SP])
+define _UC_REGS_LR     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_LR])
 define _UC_REGS_PC     offsetof(ucontext_t, uc_mcontext.__gregs[_REG_PC])



Home | Main Index | Thread Index | Old Index