Provide _UC_REGS_* defines for all registers

This commit is contained in:
skrll 2020-10-24 07:03:11 +00:00
parent 990d4b76d9
commit 134a7d48fd
1 changed files with 14 additions and 1 deletions

View File

@ -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])