genassym.cf revision 1.4
11.4Sskrll#	$NetBSD: genassym.cf,v 1.4 2024/05/30 15:56:43 skrll 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#
191.1Smatt# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.1Smatt# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.1Smatt# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.1Smatt# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.1Smatt# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.1Smatt# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.1Smatt# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.1Smatt# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.1Smatt# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.1Smatt# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.1Smatt# POSSIBILITY OF SUCH DAMAGE.
301.1Smatt#
311.1Smatt
321.1Smattinclude <sys/types.h>
331.3Sskrllinclude <sys/cpu.h>
341.1Smattinclude <sys/queue.h>
351.1Smattinclude <sys/signal.h>
361.1Smattinclude <sys/ucontext.h>
371.1Smatt
381.1Smattinclude <machine/setjmp.h>
391.1Smatt
401.4Sskrlldefine UC_GREGS_RA	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RA])
411.1Smattdefine UC_GREGS_SP	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_SP])
421.4Sskrlldefine UC_GREGS_GP	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_GP])
431.4Sskrlldefine UC_GREGS_TP	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_TP])
441.4Sskrlldefine UC_GREGS_T0	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_T0])
451.4Sskrlldefine UC_GREGS_T1	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_T1])
461.4Sskrlldefine UC_GREGS_T2	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_T2])
471.4Sskrlldefine UC_GREGS_S0	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S0])
481.4Sskrlldefine UC_GREGS_S1	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S1])
491.4Sskrlldefine UC_GREGS_A0	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A0])
501.4Sskrlldefine UC_GREGS_A1	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A1])
511.4Sskrlldefine UC_GREGS_A2	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A2])
521.4Sskrlldefine UC_GREGS_A3	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A3])
531.4Sskrlldefine UC_GREGS_A4	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A4])
541.4Sskrlldefine UC_GREGS_A5	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A5])
551.4Sskrlldefine UC_GREGS_A6	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A6])
561.4Sskrlldefine UC_GREGS_A7	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_A7])
571.4Sskrlldefine UC_GREGS_S2	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S2])
581.4Sskrlldefine UC_GREGS_S3	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S3])
591.4Sskrlldefine UC_GREGS_S4	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S4])
601.4Sskrlldefine UC_GREGS_S5	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S5])
611.4Sskrlldefine UC_GREGS_S6	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S6])
621.4Sskrlldefine UC_GREGS_S7	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S7])
631.4Sskrlldefine UC_GREGS_S8	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S8])
641.4Sskrlldefine UC_GREGS_S9	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S9])
651.4Sskrlldefine UC_GREGS_S10	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S10])
661.4Sskrlldefine UC_GREGS_S11	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_S11])
671.4Sskrlldefine UC_GREGS_T3	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_T3])
681.4Sskrlldefine UC_GREGS_T4	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_T4])
691.4Sskrlldefine UC_GREGS_T5	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_T5])
701.4Sskrlldefine UC_GREGS_T6	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_T6])
711.1Smattdefine UC_GREGS_RV	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_RV])
721.1Smattdefine UC_GREGS_PC	offsetof(ucontext_t, uc_mcontext.__gregs[_REG_PC])
731.4Sskrlldefine UC_GREGS		offsetof(ucontext_t, uc_mcontext.__gregs[0])
741.1Smatt
751.1Smattdefine SIG_BLOCK	SIG_BLOCK
761.1Smattdefine SIG_SETMASK	SIG_SETMASK
771.1Smattdefine SIGINFO_SIZE	(sizeof(siginfo_t) + __ALIGNBYTES) & ~__ALIGNBYTES
781.1Smatt
791.1Smattdefine JBLEN		_JBLEN * sizeof(_BSD_JBSLOT_T_)
801.1Smattdefine JB_MAGIC		_JB_MAGIC * sizeof(_BSD_JBSLOT_T_)
811.1Smattdefine JB_RA		_JB_RA * sizeof(_BSD_JBSLOT_T_)
821.1Smattdefine JB_S0		_JB_S0 * sizeof(_BSD_JBSLOT_T_)
831.1Smattdefine JB_S1		_JB_S1 * sizeof(_BSD_JBSLOT_T_)
841.1Smattdefine JB_S2		_JB_S2 * sizeof(_BSD_JBSLOT_T_)
851.1Smattdefine JB_S3		_JB_S3 * sizeof(_BSD_JBSLOT_T_)
861.1Smattdefine JB_S4		_JB_S4 * sizeof(_BSD_JBSLOT_T_)
871.1Smattdefine JB_S5		_JB_S5 * sizeof(_BSD_JBSLOT_T_)
881.1Smattdefine JB_S6		_JB_S6 * sizeof(_BSD_JBSLOT_T_)
891.1Smattdefine JB_S7		_JB_S7 * sizeof(_BSD_JBSLOT_T_)
901.1Smattdefine JB_S8		_JB_S8 * sizeof(_BSD_JBSLOT_T_)
911.1Smattdefine JB_S9		_JB_S9 * sizeof(_BSD_JBSLOT_T_)
921.1Smattdefine JB_S10		_JB_S10 * sizeof(_BSD_JBSLOT_T_)
931.1Smattdefine JB_S11		_JB_S11 * sizeof(_BSD_JBSLOT_T_)
941.1Smattdefine JB_SP		_JB_SP * sizeof(_BSD_JBSLOT_T_)
951.1Smattdefine JB_TP		_JB_TP * sizeof(_BSD_JBSLOT_T_)
961.1Smattdefine JB_GP		_JB_GP * sizeof(_BSD_JBSLOT_T_)
971.1Smattdefine JB_FCSR		_JB_FCSR * sizeof(_BSD_JBSLOT_T_)
981.1Smatt
991.2Smattdefine JB_FS0		_JB_FS0 * sizeof(_BSD_JBSLOT_T_)
1001.2Smattdefine JB_FS1		_JB_FS1 * sizeof(_BSD_JBSLOT_T_)
1011.2Smattdefine JB_FS2		_JB_FS2 * sizeof(_BSD_JBSLOT_T_)
1021.2Smattdefine JB_FS3		_JB_FS3 * sizeof(_BSD_JBSLOT_T_)
1031.2Smattdefine JB_FS4		_JB_FS4 * sizeof(_BSD_JBSLOT_T_)
1041.2Smattdefine JB_FS5		_JB_FS5 * sizeof(_BSD_JBSLOT_T_)
1051.2Smattdefine JB_FS6		_JB_FS6 * sizeof(_BSD_JBSLOT_T_)
1061.2Smattdefine JB_FS7		_JB_FS7 * sizeof(_BSD_JBSLOT_T_)
1071.2Smattdefine JB_FS8		_JB_FS8 * sizeof(_BSD_JBSLOT_T_)
1081.2Smattdefine JB_FS9		_JB_FS9 * sizeof(_BSD_JBSLOT_T_)
1091.2Smattdefine JB_FS10		_JB_FS10 * sizeof(_BSD_JBSLOT_T_)
1101.2Smattdefine JB_FS11		_JB_FS11 * sizeof(_BSD_JBSLOT_T_)
1111.1Smatt
1121.1Smattdefine JB_SIGMASK	_JB_SIGMASK * sizeof(_BSD_JBSLOT_T_)
113