genassym.cf revision 1.1
11.1Smatt#	$NetBSD: genassym.cf,v 1.1 2004/03/21 18:04:27 matt Exp $
21.1Smatt
31.1Smatt#
41.1Smatt# Copyright (c) 2001 The NetBSD Foundation, Inc.
51.1Smatt# All rights reserved.
61.1Smatt#
71.1Smatt# This code is derived from software contributed to The NetBSD Foundation
81.1Smatt# by Matt Thomas <matt@3am-sfotware.com>.
91.1Smatt#
101.1Smatt# Redistribution and use in source and binary forms, with or without
111.1Smatt# modification, are permitted provided that the following conditions
121.1Smatt# are met:
131.1Smatt# 1. Redistributions of source code must retain the above copyright
141.1Smatt#    notice, this list of conditions and the following disclaimer.
151.1Smatt# 2. Redistributions in binary form must reproduce the above copyright
161.1Smatt#    notice, this list of conditions and the following disclaimer in the
171.1Smatt#    documentation and/or other materials provided with the distribution.
181.1Smatt# 3. All advertising materials mentioning features or use of this software
191.1Smatt#    must display the following acknowledgement:
201.1Smatt#        This product includes software developed by the NetBSD
211.1Smatt#        Foundation, Inc. and its contributors.
221.1Smatt# 4. Neither the name of The NetBSD Foundation nor the names of its
231.1Smatt#    contributors may be used to endorse or promote products derived
241.1Smatt#    from this software without specific prior written permission.
251.1Smatt#
261.1Smatt# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
271.1Smatt# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
281.1Smatt# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
291.1Smatt# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
301.1Smatt# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
311.1Smatt# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
321.1Smatt# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
331.1Smatt# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
341.1Smatt# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
351.1Smatt# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
361.1Smatt# POSSIBILITY OF SUCH DAMAGE.
371.1Smatt#
381.1Smatt
391.1Smattinclude <sys/types.h>
401.1Smattinclude <machine/reg.h>
411.1Smattinclude <ucontext.h>
421.1Smattinclude <signal.h>
431.1Smatt
441.1Smattdefine _REG_V0		8*_REG_V0	/* 0 */
451.1Smattdefine _REG_T0		8*_REG_T0	/* 1 */
461.1Smattdefine _REG_T1		8*_REG_T1	/* 2 */
471.1Smattdefine _REG_T2		8*_REG_T2	/* 3 */
481.1Smattdefine _REG_T3		8*_REG_T3	/* 4 */
491.1Smattdefine _REG_T4		8*_REG_T4	/* 5 */
501.1Smattdefine _REG_T5		8*_REG_T5	/* 6 */
511.1Smattdefine _REG_T6		8*_REG_T6	/* 7 */
521.1Smattdefine _REG_T7		8*_REG_T7	/* 8 */
531.1Smattdefine _REG_S0		8*_REG_S0	/* 9 */
541.1Smattdefine _REG_S1		8*_REG_S1	/* 10 */
551.1Smattdefine _REG_S2		8*_REG_S2	/* 11 */
561.1Smattdefine _REG_S3		8*_REG_S3	/* 12 */
571.1Smattdefine _REG_S4		8*_REG_S4	/* 13 */
581.1Smattdefine _REG_S5		8*_REG_S5	/* 14 */
591.1Smattdefine _REG_S6		8*_REG_S6	/* 15 */
601.1Smattdefine _REG_A0		8*_REG_A0	/* 16 */
611.1Smattdefine _REG_A1		8*_REG_A1	/* 17 */
621.1Smattdefine _REG_A2		8*_REG_A2	/* 18 */
631.1Smattdefine _REG_A3		8*_REG_A3	/* 19 */
641.1Smattdefine _REG_A4		8*_REG_A4	/* 20 */
651.1Smattdefine _REG_A5		8*_REG_A5	/* 21 */
661.1Smattdefine _REG_T8		8*_REG_T8	/* 22 */
671.1Smattdefine _REG_T9		8*_REG_T9	/* 23 */
681.1Smattdefine _REG_T10		8*_REG_T10	/* 24 */
691.1Smattdefine _REG_T11		8*_REG_T11	/* 25 */
701.1Smattdefine _REG_RA		8*_REG_RA	/* 26 */
711.1Smattdefine _REG_T12		8*_REG_T12	/* 27 */
721.1Smattdefine _REG_PV		8*_REG_PV	/* 27 */
731.1Smattdefine _REG_AT		8*_REG_AT	/* 28 */
741.1Smattdefine _REG_GP		8*_REG_GP	/* 29 */
751.1Smattdefine _REG_SP		8*_REG_SP	/* 30 */
761.1Smattdefine _REG_UNIQUE	8*_REG_UNIQUE	/* 31 */
771.1Smattdefine _REG_PC		8*_REG_PC	/* 32 */
781.1Smattdefine _REG_PS		8*_REG_PS	/* 33 */
791.1Smatt
801.1Smattdefine	SC_ONSTACK	offsetof(struct sigcontext, sc_onstack)
811.1Smattdefine	SC_SP		offsetof(struct sigcontext, sc_sp)
821.1Smattdefine	SC_PC		offsetof(struct sigcontext, sc_pc)
831.1Smattdefine	SC_PS		offsetof(struct sigcontext, sc_ps)
841.1Smattdefine	SC_REGS		offsetof(struct sigcontext, sc_regs)
851.1Smattdefine	SC_OWNEDFP	offsetof(struct sigcontext, sc_regs)
861.1Smattdefine	SC_FPREGS	offsetof(struct sigcontext, sc_fpregs)
871.1Smattdefine	SC_FPCR		offsetof(struct sigcontext, sc_fpcr)
881.1Smattdefine	SC_FP_CONTROL	offsetof(struct sigcontext, sc_fp_control)
891.1Smattdefine	SC_MASK		offsetof(struct sigcontext, sc_mask)
901.1Smattdefine	SC_RESERVED	offsetof(struct sigcontext, sc_reserved)
911.1Smattdefine	SC_XXX		offsetof(struct sigcontext, sc_xxx)
92