genassym.cf revision 1.1
11.1Smatt# $NetBSD: genassym.cf,v 1.1 2003/03/04 07:51:03 matt Exp $ 21.1Smatt 31.1Smatt# 41.1Smatt# Copyright (C) 1995, 1996 Wolfgang Solfrank. 51.1Smatt# Copyright (C) 1995, 1996 TooLs GmbH. 61.1Smatt# All rights reserved. 71.1Smatt# 81.1Smatt# Redistribution and use in source and binary forms, with or without 91.1Smatt# modification, are permitted provided that the following conditions 101.1Smatt# are met: 111.1Smatt# 1. Redistributions of source code must retain the above copyright 121.1Smatt# notice, this list of conditions and the following disclaimer. 131.1Smatt# 2. Redistributions in binary form must reproduce the above copyright 141.1Smatt# notice, this list of conditions and the following disclaimer in the 151.1Smatt# documentation and/or other materials provided with the distribution. 161.1Smatt# 3. All advertising materials mentioning features or use of this software 171.1Smatt# must display the following acknowledgement: 181.1Smatt# This product includes software developed by TooLs GmbH. 191.1Smatt# 4. The name of TooLs GmbH may not be used to endorse or promote products 201.1Smatt# derived from this software without specific prior written permission. 211.1Smatt# 221.1Smatt# THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 231.1Smatt# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 241.1Smatt# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 251.1Smatt# IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 261.1Smatt# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 271.1Smatt# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 281.1Smatt# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 291.1Smatt# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 301.1Smatt# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 311.1Smatt# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 321.1Smatt# 331.1Smatt 341.1Smattinclude <sys/param.h> 351.1Smattinclude <sys/time.h> 361.1Smattinclude <sys/proc.h> 371.1Smatt 381.1Smattinclude <uvm/uvm_extern.h> 391.1Smatt 401.1Smattinclude <machine/pcb.h> 411.1Smattinclude <machine/pmap.h> 421.1Smatt 431.1Smattdefine FRAMELEN FRAMELEN 441.1Smattdefine FRAME_0 offsetof(struct trapframe, fixreg[0]) 451.1Smattdefine FRAME_1 offsetof(struct trapframe, fixreg[1]) 461.1Smattdefine FRAME_2 offsetof(struct trapframe, fixreg[2]) 471.1Smattdefine FRAME_3 offsetof(struct trapframe, fixreg[3]) 481.1Smattdefine FRAME_LR offsetof(struct trapframe, lr) 491.1Smattdefine FRAME_CR offsetof(struct trapframe, cr) 501.1Smattdefine FRAME_CTR offsetof(struct trapframe, ctr) 511.1Smattdefine FRAME_XER offsetof(struct trapframe, xer) 521.1Smattdefine FRAME_SRR0 offsetof(struct trapframe, srr0) 531.1Smattdefine FRAME_SRR1 offsetof(struct trapframe, srr1) 541.1Smattdefine FRAME_DEAR offsetof(struct trapframe, dar) 551.1Smattdefine FRAME_EXC offsetof(struct trapframe, exc) 561.1Smattdefine FRAME_ESR offsetof(struct trapframe, tf_xtra[TF_ESR]) 571.1Smattdefine FRAME_PID offsetof(struct trapframe, tf_xtra[TF_PID]) 581.1Smatt 591.1Smattdefine IFRAMELEN IFRAMELEN 601.1Smattdefine IFRAME_R1 offsetof(struct intrframe, r1) 611.1Smattdefine IFRAME_SRR1 offsetof(struct intrframe, srr1) 621.1Smattdefine IFRAME_SRR0 offsetof(struct intrframe, srr0) 631.1Smattdefine IFRAME_PRI offsetof(struct intrframe, pri) 641.1Smattdefine IFRAME_INTR_DEPTH offsetof(struct intrframe, intrdepth) 651.1Smattdefine IFRAME_PID offsetof(struct intrframe, pid) 661.1Smattdefine IFRAME_CTR offsetof(struct intrframe, ctr) 671.1Smattdefine IFRAME_XER offsetof(struct intrframe, xer) 681.1Smattdefine IFRAME_CR offsetof(struct intrframe, cr) 691.1Smattdefine IFRAME_LR offsetof(struct intrframe, lr) 701.1Smattdefine IFRAME_R12 offsetof(struct intrframe, r12) 711.1Smattdefine IFRAME_R11 offsetof(struct intrframe, r11) 721.1Smattdefine IFRAME_R10 offsetof(struct intrframe, r10) 731.1Smattdefine IFRAME_R9 offsetof(struct intrframe, r9) 741.1Smattdefine IFRAME_R8 offsetof(struct intrframe, r8) 751.1Smattdefine IFRAME_R7 offsetof(struct intrframe, r7) 761.1Smattdefine IFRAME_R6 offsetof(struct intrframe, r6) 771.1Smattdefine IFRAME_R5 offsetof(struct intrframe, r5) 781.1Smattdefine IFRAME_R4 offsetof(struct intrframe, r4) 791.1Smattdefine IFRAME_R3 offsetof(struct intrframe, r3) 801.1Smattdefine IFRAME_R0 offsetof(struct intrframe, r0) 811.1Smatt 821.1Smattdefine SZ_BOARD_CFG_DATA sizeof(struct board_cfg_data) 831.1Smatt 841.1Smattdefine CALLFRAMELEN CALLFRAMELEN 851.1Smattdefine CFRAME_SP offsetof(struct callframe, sp) 861.1Smattdefine CFRAME_LR offsetof(struct callframe, lr) 871.1Smattdefine CFRAME_R30 offsetof(struct callframe, r30) 881.1Smattdefine CFRAME_R31 offsetof(struct callframe, r31) 891.1Smatt 901.1Smattdefine SFRAMELEN roundup(sizeof(struct switchframe), CALLFRAMELEN) 911.1Smattdefine SFRAME_SP offsetof(struct switchframe, sp) 921.1Smattdefine SFRAME_CR offsetof(struct switchframe, cr) 931.1Smattdefine SFRAME_R2 offsetof(struct switchframe, fixreg2) 941.1Smattdefine SFRAME_R19 offsetof(struct switchframe, fixreg[0]) 951.1Smatt 961.1Smattdefine PCB_PMR offsetof(struct pcb, pcb_pmreal) 971.1Smattdefine PCB_SP offsetof(struct pcb, pcb_sp) 981.1Smattdefine PCB_SPL offsetof(struct pcb, pcb_spl) 991.1Smattdefine PCB_FAULT offsetof(struct pcb, pcb_onfault) 1001.1Smatt 1011.1Smattdefine PM_CTX offsetof(struct pmap, pm_ctx) 1021.1Smatt 1031.1Smattdefine L_FORW offsetof(struct lwp, l_forw) 1041.1Smattdefine L_BACK offsetof(struct lwp, l_back) 1051.1Smattdefine L_ADDR offsetof(struct lwp, l_addr) 1061.1Smattdefine L_STAT offsetof(struct lwp, l_stat) 1071.1Smattdefine L_CPU offsetof(struct lwp, l_cpu) 1081.1Smattdefine L_PRIORITY offsetof(struct lwp, l_priority) 1091.1Smattdefine L_PROC offsetof(struct lwp, l_proc) 1101.1Smatt 1111.1Smattdefine P_MD_SYSCALL offsetof(struct proc, p_md.md_syscall) 1121.1Smatt 1131.1Smattdefine LSONPROC LSONPROC 1141.1Smatt 1151.1Smattdefine CI_SIZE sizeof(struct cpu_info) 1161.1Smattdefine CI_CURLWP offsetof(struct cpu_info, ci_curlwp) 1171.1Smattdefine CI_CURPCB offsetof(struct cpu_info, ci_curpcb) 1181.1Smattdefine CI_CURPM offsetof(struct cpu_info, ci_curpm) 1191.1Smattdefine CI_IDLE_PCB offsetof(struct cpu_info, ci_idle_pcb) 1201.1Smattdefine CI_ASTPENDING offsetof(struct cpu_info, ci_astpending) 1211.1Smattdefine CI_WANT_RESCHED offsetof(struct cpu_info, ci_want_resched) 1221.1Smattdefine CI_CPL offsetof(struct cpu_info, ci_cpl) 1231.1Smattdefine CI_INTRDEPTH offsetof(struct cpu_info, ci_intrdepth) 1241.1Smattdefine CI_INTSTK offsetof(struct cpu_info, ci_intstk) 1251.1Smattdefine CI_SPILLSTK offsetof(struct cpu_info, ci_spillstk) 1261.1Smattdefine CI_TEMPSAVE offsetof(struct cpu_info, ci_tempsave) 1271.1Smattdefine CI_DDBSAVE offsetof(struct cpu_info, ci_ddbsave) 1281.1Smattdefine CI_IPKDBSAVE offsetof(struct cpu_info, ci_ipkdbsave) 1291.1Smattdefine CI_DISISAVE offsetof(struct cpu_info, ci_disisave) 1301.1Smatt 1311.1Smattdefine FB_PC offsetof(struct faultbuf, fb_pc) 1321.1Smattdefine FB_SP offsetof(struct faultbuf, fb_sp) 1331.1Smattdefine FB_R2 offsetof(struct faultbuf, fb_r2) 1341.1Smattdefine FB_CR offsetof(struct faultbuf, fb_cr) 1351.1Smattdefine FB_FIXREG offsetof(struct faultbuf, fb_fixreg) 1361.1Smatt 1371.1Smattdefine CACHELINESIZE CACHELINESIZE 1381.1Smatt 1391.1Smattdefine CPU_CI offsetof(struct cpu_info, ci_ci) 140