1 # $NetBSD: genassym.cf,v 1.2 2008/04/28 20:22:55 martin Exp $
4 # Copyright (c) 2001 The NetBSD Foundation, Inc.
7 # This code is derived from software contributed to The NetBSD Foundation
8 # by Matt Thomas <matt@3am-sfotware.com>.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted provided that the following conditions
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.
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.
33 include <machine/reg.h>
37 define _REG_V0 8*_REG_V0 /* 0 */
38 define _REG_T0 8*_REG_T0 /* 1 */
39 define _REG_T1 8*_REG_T1 /* 2 */
40 define _REG_T2 8*_REG_T2 /* 3 */
41 define _REG_T3 8*_REG_T3 /* 4 */
42 define _REG_T4 8*_REG_T4 /* 5 */
43 define _REG_T5 8*_REG_T5 /* 6 */
44 define _REG_T6 8*_REG_T6 /* 7 */
45 define _REG_T7 8*_REG_T7 /* 8 */
46 define _REG_S0 8*_REG_S0 /* 9 */
47 define _REG_S1 8*_REG_S1 /* 10 */
48 define _REG_S2 8*_REG_S2 /* 11 */
49 define _REG_S3 8*_REG_S3 /* 12 */
50 define _REG_S4 8*_REG_S4 /* 13 */
51 define _REG_S5 8*_REG_S5 /* 14 */
52 define _REG_S6 8*_REG_S6 /* 15 */
53 define _REG_A0 8*_REG_A0 /* 16 */
54 define _REG_A1 8*_REG_A1 /* 17 */
55 define _REG_A2 8*_REG_A2 /* 18 */
56 define _REG_A3 8*_REG_A3 /* 19 */
57 define _REG_A4 8*_REG_A4 /* 20 */
58 define _REG_A5 8*_REG_A5 /* 21 */
59 define _REG_T8 8*_REG_T8 /* 22 */
60 define _REG_T9 8*_REG_T9 /* 23 */
61 define _REG_T10 8*_REG_T10 /* 24 */
62 define _REG_T11 8*_REG_T11 /* 25 */
63 define _REG_RA 8*_REG_RA /* 26 */
64 define _REG_T12 8*_REG_T12 /* 27 */
65 define _REG_PV 8*_REG_PV /* 27 */
66 define _REG_AT 8*_REG_AT /* 28 */
67 define _REG_GP 8*_REG_GP /* 29 */
68 define _REG_SP 8*_REG_SP /* 30 */
69 define _REG_UNIQUE 8*_REG_UNIQUE /* 31 */
70 define _REG_PC 8*_REG_PC /* 32 */
71 define _REG_PS 8*_REG_PS /* 33 */
73 define SC_ONSTACK offsetof(struct sigcontext, sc_onstack)
74 define SC_SP offsetof(struct sigcontext, sc_sp)
75 define SC_PC offsetof(struct sigcontext, sc_pc)
76 define SC_PS offsetof(struct sigcontext, sc_ps)
77 define SC_REGS offsetof(struct sigcontext, sc_regs)
78 define SC_OWNEDFP offsetof(struct sigcontext, sc_regs)
79 define SC_FPREGS offsetof(struct sigcontext, sc_fpregs)
80 define SC_FPCR offsetof(struct sigcontext, sc_fpcr)
81 define SC_FP_CONTROL offsetof(struct sigcontext, sc_fp_control)
82 define SC_MASK offsetof(struct sigcontext, sc_mask)
83 define SC_RESERVED offsetof(struct sigcontext, sc_reserved)
84 define SC_XXX offsetof(struct sigcontext, sc_xxx)