1*2fe8fb19SBen Gras# $NetBSD: genassym.cf,v 1.2 2008/04/28 20:22:55 martin Exp $ 2*2fe8fb19SBen Gras 3*2fe8fb19SBen Gras# 4*2fe8fb19SBen Gras# Copyright (c) 2001 The NetBSD Foundation, Inc. 5*2fe8fb19SBen Gras# All rights reserved. 6*2fe8fb19SBen Gras# 7*2fe8fb19SBen Gras# This code is derived from software contributed to The NetBSD Foundation 8*2fe8fb19SBen Gras# by Matt Thomas <matt@3am-sfotware.com>. 9*2fe8fb19SBen Gras# 10*2fe8fb19SBen Gras# Redistribution and use in source and binary forms, with or without 11*2fe8fb19SBen Gras# modification, are permitted provided that the following conditions 12*2fe8fb19SBen Gras# are met: 13*2fe8fb19SBen Gras# 1. Redistributions of source code must retain the above copyright 14*2fe8fb19SBen Gras# notice, this list of conditions and the following disclaimer. 15*2fe8fb19SBen Gras# 2. Redistributions in binary form must reproduce the above copyright 16*2fe8fb19SBen Gras# notice, this list of conditions and the following disclaimer in the 17*2fe8fb19SBen Gras# documentation and/or other materials provided with the distribution. 18*2fe8fb19SBen Gras# 19*2fe8fb19SBen Gras# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20*2fe8fb19SBen Gras# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21*2fe8fb19SBen Gras# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22*2fe8fb19SBen Gras# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23*2fe8fb19SBen Gras# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24*2fe8fb19SBen Gras# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25*2fe8fb19SBen Gras# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26*2fe8fb19SBen Gras# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27*2fe8fb19SBen Gras# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28*2fe8fb19SBen Gras# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29*2fe8fb19SBen Gras# POSSIBILITY OF SUCH DAMAGE. 30*2fe8fb19SBen Gras# 31*2fe8fb19SBen Gras 32*2fe8fb19SBen Grasinclude <sys/types.h> 33*2fe8fb19SBen Grasinclude <machine/reg.h> 34*2fe8fb19SBen Grasinclude <ucontext.h> 35*2fe8fb19SBen Grasinclude <signal.h> 36*2fe8fb19SBen Gras 37*2fe8fb19SBen Grasdefine _REG_V0 8*_REG_V0 /* 0 */ 38*2fe8fb19SBen Grasdefine _REG_T0 8*_REG_T0 /* 1 */ 39*2fe8fb19SBen Grasdefine _REG_T1 8*_REG_T1 /* 2 */ 40*2fe8fb19SBen Grasdefine _REG_T2 8*_REG_T2 /* 3 */ 41*2fe8fb19SBen Grasdefine _REG_T3 8*_REG_T3 /* 4 */ 42*2fe8fb19SBen Grasdefine _REG_T4 8*_REG_T4 /* 5 */ 43*2fe8fb19SBen Grasdefine _REG_T5 8*_REG_T5 /* 6 */ 44*2fe8fb19SBen Grasdefine _REG_T6 8*_REG_T6 /* 7 */ 45*2fe8fb19SBen Grasdefine _REG_T7 8*_REG_T7 /* 8 */ 46*2fe8fb19SBen Grasdefine _REG_S0 8*_REG_S0 /* 9 */ 47*2fe8fb19SBen Grasdefine _REG_S1 8*_REG_S1 /* 10 */ 48*2fe8fb19SBen Grasdefine _REG_S2 8*_REG_S2 /* 11 */ 49*2fe8fb19SBen Grasdefine _REG_S3 8*_REG_S3 /* 12 */ 50*2fe8fb19SBen Grasdefine _REG_S4 8*_REG_S4 /* 13 */ 51*2fe8fb19SBen Grasdefine _REG_S5 8*_REG_S5 /* 14 */ 52*2fe8fb19SBen Grasdefine _REG_S6 8*_REG_S6 /* 15 */ 53*2fe8fb19SBen Grasdefine _REG_A0 8*_REG_A0 /* 16 */ 54*2fe8fb19SBen Grasdefine _REG_A1 8*_REG_A1 /* 17 */ 55*2fe8fb19SBen Grasdefine _REG_A2 8*_REG_A2 /* 18 */ 56*2fe8fb19SBen Grasdefine _REG_A3 8*_REG_A3 /* 19 */ 57*2fe8fb19SBen Grasdefine _REG_A4 8*_REG_A4 /* 20 */ 58*2fe8fb19SBen Grasdefine _REG_A5 8*_REG_A5 /* 21 */ 59*2fe8fb19SBen Grasdefine _REG_T8 8*_REG_T8 /* 22 */ 60*2fe8fb19SBen Grasdefine _REG_T9 8*_REG_T9 /* 23 */ 61*2fe8fb19SBen Grasdefine _REG_T10 8*_REG_T10 /* 24 */ 62*2fe8fb19SBen Grasdefine _REG_T11 8*_REG_T11 /* 25 */ 63*2fe8fb19SBen Grasdefine _REG_RA 8*_REG_RA /* 26 */ 64*2fe8fb19SBen Grasdefine _REG_T12 8*_REG_T12 /* 27 */ 65*2fe8fb19SBen Grasdefine _REG_PV 8*_REG_PV /* 27 */ 66*2fe8fb19SBen Grasdefine _REG_AT 8*_REG_AT /* 28 */ 67*2fe8fb19SBen Grasdefine _REG_GP 8*_REG_GP /* 29 */ 68*2fe8fb19SBen Grasdefine _REG_SP 8*_REG_SP /* 30 */ 69*2fe8fb19SBen Grasdefine _REG_UNIQUE 8*_REG_UNIQUE /* 31 */ 70*2fe8fb19SBen Grasdefine _REG_PC 8*_REG_PC /* 32 */ 71*2fe8fb19SBen Grasdefine _REG_PS 8*_REG_PS /* 33 */ 72*2fe8fb19SBen Gras 73*2fe8fb19SBen Grasdefine SC_ONSTACK offsetof(struct sigcontext, sc_onstack) 74*2fe8fb19SBen Grasdefine SC_SP offsetof(struct sigcontext, sc_sp) 75*2fe8fb19SBen Grasdefine SC_PC offsetof(struct sigcontext, sc_pc) 76*2fe8fb19SBen Grasdefine SC_PS offsetof(struct sigcontext, sc_ps) 77*2fe8fb19SBen Grasdefine SC_REGS offsetof(struct sigcontext, sc_regs) 78*2fe8fb19SBen Grasdefine SC_OWNEDFP offsetof(struct sigcontext, sc_regs) 79*2fe8fb19SBen Grasdefine SC_FPREGS offsetof(struct sigcontext, sc_fpregs) 80*2fe8fb19SBen Grasdefine SC_FPCR offsetof(struct sigcontext, sc_fpcr) 81*2fe8fb19SBen Grasdefine SC_FP_CONTROL offsetof(struct sigcontext, sc_fp_control) 82*2fe8fb19SBen Grasdefine SC_MASK offsetof(struct sigcontext, sc_mask) 83*2fe8fb19SBen Grasdefine SC_RESERVED offsetof(struct sigcontext, sc_reserved) 84*2fe8fb19SBen Grasdefine SC_XXX offsetof(struct sigcontext, sc_xxx) 85