xref: /netbsd-src/lib/libc/arch/alpha/genassym.cf (revision f81322cf185a4db50f71fcf7701f20198272620e)
1#	$NetBSD: genassym.cf,v 1.1 2004/03/21 18:04:27 matt Exp $
2
3#
4# Copyright (c) 2001 The NetBSD Foundation, Inc.
5# All rights reserved.
6#
7# This code is derived from software contributed to The NetBSD Foundation
8# by Matt Thomas <matt@3am-sfotware.com>.
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# 3. All advertising materials mentioning features or use of this software
19#    must display the following acknowledgement:
20#        This product includes software developed by the NetBSD
21#        Foundation, Inc. and its contributors.
22# 4. Neither the name of The NetBSD Foundation nor the names of its
23#    contributors may be used to endorse or promote products derived
24#    from this software without specific prior written permission.
25#
26# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36# POSSIBILITY OF SUCH DAMAGE.
37#
38
39include <sys/types.h>
40include <machine/reg.h>
41include <ucontext.h>
42include <signal.h>
43
44define _REG_V0		8*_REG_V0	/* 0 */
45define _REG_T0		8*_REG_T0	/* 1 */
46define _REG_T1		8*_REG_T1	/* 2 */
47define _REG_T2		8*_REG_T2	/* 3 */
48define _REG_T3		8*_REG_T3	/* 4 */
49define _REG_T4		8*_REG_T4	/* 5 */
50define _REG_T5		8*_REG_T5	/* 6 */
51define _REG_T6		8*_REG_T6	/* 7 */
52define _REG_T7		8*_REG_T7	/* 8 */
53define _REG_S0		8*_REG_S0	/* 9 */
54define _REG_S1		8*_REG_S1	/* 10 */
55define _REG_S2		8*_REG_S2	/* 11 */
56define _REG_S3		8*_REG_S3	/* 12 */
57define _REG_S4		8*_REG_S4	/* 13 */
58define _REG_S5		8*_REG_S5	/* 14 */
59define _REG_S6		8*_REG_S6	/* 15 */
60define _REG_A0		8*_REG_A0	/* 16 */
61define _REG_A1		8*_REG_A1	/* 17 */
62define _REG_A2		8*_REG_A2	/* 18 */
63define _REG_A3		8*_REG_A3	/* 19 */
64define _REG_A4		8*_REG_A4	/* 20 */
65define _REG_A5		8*_REG_A5	/* 21 */
66define _REG_T8		8*_REG_T8	/* 22 */
67define _REG_T9		8*_REG_T9	/* 23 */
68define _REG_T10		8*_REG_T10	/* 24 */
69define _REG_T11		8*_REG_T11	/* 25 */
70define _REG_RA		8*_REG_RA	/* 26 */
71define _REG_T12		8*_REG_T12	/* 27 */
72define _REG_PV		8*_REG_PV	/* 27 */
73define _REG_AT		8*_REG_AT	/* 28 */
74define _REG_GP		8*_REG_GP	/* 29 */
75define _REG_SP		8*_REG_SP	/* 30 */
76define _REG_UNIQUE	8*_REG_UNIQUE	/* 31 */
77define _REG_PC		8*_REG_PC	/* 32 */
78define _REG_PS		8*_REG_PS	/* 33 */
79
80define	SC_ONSTACK	offsetof(struct sigcontext, sc_onstack)
81define	SC_SP		offsetof(struct sigcontext, sc_sp)
82define	SC_PC		offsetof(struct sigcontext, sc_pc)
83define	SC_PS		offsetof(struct sigcontext, sc_ps)
84define	SC_REGS		offsetof(struct sigcontext, sc_regs)
85define	SC_OWNEDFP	offsetof(struct sigcontext, sc_regs)
86define	SC_FPREGS	offsetof(struct sigcontext, sc_fpregs)
87define	SC_FPCR		offsetof(struct sigcontext, sc_fpcr)
88define	SC_FP_CONTROL	offsetof(struct sigcontext, sc_fp_control)
89define	SC_MASK		offsetof(struct sigcontext, sc_mask)
90define	SC_RESERVED	offsetof(struct sigcontext, sc_reserved)
91define	SC_XXX		offsetof(struct sigcontext, sc_xxx)
92