genassym.cf revision 1.3
1#	$NetBSD: genassym.cf,v 1.3 2020/10/24 07:05:52 skrll Exp $
2
3#
4# Copyright (c) 2014 The NetBSD Foundation, Inc.
5# All rights reserved.
6#
7# This code is derived from software contributed to The NetBSD Foundation
8# by Nick Hudson
9#
10# Redistribution and use in source and binary forms, with or without
11# modification, are permitted provided that the following conditions
12# are met:
13# 1. Redistributions of source code must retain the above copyright
14#    notice, this list of conditions and the following disclaimer.
15# 2. Redistributions in binary form must reproduce the above copyright
16#    notice, this list of conditions and the following disclaimer in the
17#    documentation and/or other materials provided with the distribution.
18#
19# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29# POSSIBILITY OF SUCH DAMAGE.
30#
31
32include <sys/types.h>
33include <ucontext.h>
34
35define _REG_PCOQH	_REG_PCOQH
36define _REG_PCOQT	_REG_PCOQT
37define _REG_RET0	_REG_RET0
38
39define _UC_GREGS	offsetof(ucontext_t, uc_mcontext.__gregs[0])
40define _UC_GREGS_R1	offsetof(ucontext_t, uc_mcontext.__gregs[1])
41define _UC_GREGS_R2	offsetof(ucontext_t, uc_mcontext.__gregs[2])
42define _UC_GREGS_R3	offsetof(ucontext_t, uc_mcontext.__gregs[3])
43define _UC_GREGS_R4	offsetof(ucontext_t, uc_mcontext.__gregs[4])
44define _UC_GREGS_R5	offsetof(ucontext_t, uc_mcontext.__gregs[5])
45define _UC_GREGS_R6	offsetof(ucontext_t, uc_mcontext.__gregs[6])
46define _UC_GREGS_R7	offsetof(ucontext_t, uc_mcontext.__gregs[7])
47define _UC_GREGS_R8	offsetof(ucontext_t, uc_mcontext.__gregs[8])
48define _UC_GREGS_R9	offsetof(ucontext_t, uc_mcontext.__gregs[9])
49define _UC_GREGS_R10	offsetof(ucontext_t, uc_mcontext.__gregs[10])
50define _UC_GREGS_R11	offsetof(ucontext_t, uc_mcontext.__gregs[11])
51define _UC_GREGS_R12	offsetof(ucontext_t, uc_mcontext.__gregs[12])
52define _UC_GREGS_R13	offsetof(ucontext_t, uc_mcontext.__gregs[13])
53define _UC_GREGS_R14	offsetof(ucontext_t, uc_mcontext.__gregs[14])
54define _UC_GREGS_R15	offsetof(ucontext_t, uc_mcontext.__gregs[15])
55define _UC_GREGS_R16	offsetof(ucontext_t, uc_mcontext.__gregs[16])
56define _UC_GREGS_R17	offsetof(ucontext_t, uc_mcontext.__gregs[17])
57define _UC_GREGS_R18	offsetof(ucontext_t, uc_mcontext.__gregs[18])
58define _UC_GREGS_R19	offsetof(ucontext_t, uc_mcontext.__gregs[19])
59define _UC_GREGS_R20	offsetof(ucontext_t, uc_mcontext.__gregs[20])
60define _UC_GREGS_R21	offsetof(ucontext_t, uc_mcontext.__gregs[21])
61define _UC_GREGS_R22	offsetof(ucontext_t, uc_mcontext.__gregs[22])
62define _UC_GREGS_R23	offsetof(ucontext_t, uc_mcontext.__gregs[23])
63define _UC_GREGS_R24	offsetof(ucontext_t, uc_mcontext.__gregs[24])
64define _UC_GREGS_R25	offsetof(ucontext_t, uc_mcontext.__gregs[25])
65define _UC_GREGS_R26	offsetof(ucontext_t, uc_mcontext.__gregs[26])
66define _UC_GREGS_R27	offsetof(ucontext_t, uc_mcontext.__gregs[27])
67define _UC_GREGS_R28	offsetof(ucontext_t, uc_mcontext.__gregs[28])
68define _UC_GREGS_R29	offsetof(ucontext_t, uc_mcontext.__gregs[29])
69define _UC_GREGS_R30	offsetof(ucontext_t, uc_mcontext.__gregs[30])
70define _UC_GREGS_R31	offsetof(ucontext_t, uc_mcontext.__gregs[31])
71