Module Name: src
Committed By: skrll
Date: Sat Oct 24 07:03:12 UTC 2020
Modified Files:
src/lib/libc/arch/arm: genassym.cf
Log Message:
Provide _UC_REGS_* defines for all registers
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/arm/genassym.cf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/arch/arm/genassym.cf
diff -u src/lib/libc/arch/arm/genassym.cf:1.2 src/lib/libc/arch/arm/genassym.cf:1.3
--- src/lib/libc/arch/arm/genassym.cf:1.2 Tue Apr 30 12:24:31 2013
+++ src/lib/libc/arch/arm/genassym.cf Sat Oct 24 07:03:11 2020
@@ -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 <sys/types.h>
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])