genassym.cf revision 1.1
11.1Sscottr# $NetBSD: genassym.cf,v 1.1 1997/04/15 06:11:40 scottr Exp $ 21.1Sscottr 31.1Sscottr# 41.1Sscottr# Copyright (c) 1990 The Regents of the University of California. 51.1Sscottr# All rights reserved. 61.1Sscottr# 71.1Sscottr# Redistribution and use in source and binary forms, with or without 81.1Sscottr# modification, are permitted provided that the following conditions 91.1Sscottr# are met: 101.1Sscottr# 1. Redistributions of source code must retain the above copyright 111.1Sscottr# notice, this list of conditions and the following disclaimer. 121.1Sscottr# 2. Redistributions in binary form must reproduce the above copyright 131.1Sscottr# notice, this list of conditions and the following disclaimer in the 141.1Sscottr# documentation and/or other materials provided with the distribution. 151.1Sscottr# 3. All advertising materials mentioning features or use of this software 161.1Sscottr# must display the following acknowledgement: 171.1Sscottr# This product includes software developed by the University of 181.1Sscottr# California, Berkeley and its contributors. 191.1Sscottr# 4. Neither the name of the University nor the names of its contributors 201.1Sscottr# may be used to endorse or promote products derived from this software 211.1Sscottr# without specific prior written permission. 221.1Sscottr# 231.1Sscottr# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 241.1Sscottr# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 251.1Sscottr# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 261.1Sscottr# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 271.1Sscottr# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 281.1Sscottr# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 291.1Sscottr# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 301.1Sscottr# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 311.1Sscottr# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 321.1Sscottr# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 331.1Sscottr# SUCH DAMAGE. 341.1Sscottr# 351.1Sscottr# @(#)genassym.c 7.8 (Berkeley) 5/7/91 361.1Sscottr# 371.1Sscottr 381.1Sscottrinclude <sys/param.h> 391.1Sscottrinclude <sys/buf.h> 401.1Sscottrinclude <sys/proc.h> 411.1Sscottrinclude <sys/mbuf.h> 421.1Sscottrinclude <sys/msgbuf.h> 431.1Sscottrinclude <sys/syscall.h> 441.1Sscottrinclude <sys/systm.h> 451.1Sscottrinclude <sys/types.h> 461.1Sscottrinclude <sys/user.h> 471.1Sscottr 481.1Sscottrinclude <vm/vm.h> 491.1Sscottr 501.1Sscottrinclude <machine/cpu.h> 511.1Sscottrinclude <machine/trap.h> 521.1Sscottrinclude <machine/psl.h> 531.1Sscottrinclude <machine/reg.h> 541.1Sscottrinclude <machine/pte.h> 551.1Sscottr 561.1Sscottrdefine P_FORW offsetof(struct proc, p_forw) 571.1Sscottrdefine P_BACK offsetof(struct proc, p_back) 581.1Sscottrdefine P_VMSPACE offsetof(struct proc, p_vmspace) 591.1Sscottrdefine P_ADDR offsetof(struct proc, p_addr) 601.1Sscottrdefine P_MD offsetof(struct proc, p_md) 611.1Sscottrdefine P_PID offsetof(struct proc, p_pid) 621.1Sscottrdefine P_PRIORITY offsetof(struct proc, p_priority) 631.1Sscottrdefine P_STAT offsetof(struct proc, p_stat) 641.1Sscottrdefine P_WCHAN offsetof(struct proc, p_wchan) 651.1Sscottrdefine P_FLAG offsetof(struct proc, p_flag) 661.1Sscottrdefine P_MD_REGS offsetof(struct proc, p_md.md_regs) 671.1Sscottrdefine P_MD_FLAGS offsetof(struct proc, p_md.md_flags) 681.1Sscottrdefine SSLEEP SSLEEP 691.1Sscottrdefine SRUN SRUN 701.1Sscottr 711.1Sscottrdefine MD_REGS offsetof(struct mdproc, md_regs) 721.1Sscottr 731.1Sscottrdefine PM_STCHG offsetof(struct pmap, pm_stchanged) 741.1Sscottr 751.1Sscottrdefine VM_PMAP offsetof(struct vmspace, vm_pmap) 761.1Sscottrdefine V_SWTCH offsetof(struct vmmeter, v_swtch) 771.1Sscottrdefine V_TRAP offsetof(struct vmmeter, v_trap) 781.1Sscottrdefine V_SYSCALL offsetof(struct vmmeter, v_syscall) 791.1Sscottrdefine V_INTR offsetof(struct vmmeter, v_intr) 801.1Sscottrdefine V_SOFT offsetof(struct vmmeter, v_soft) 811.1Sscottr 821.1Sscottrdefine UPAGES UPAGES 831.1Sscottrdefine USPACE USPACE 841.1Sscottrdefine P1PAGES P1PAGES 851.1Sscottrdefine CLSIZE CLSIZE 861.1Sscottrdefine NBPG NBPG 871.1Sscottrdefine NPTEPG NPTEPG 881.1Sscottrdefine PGSHIFT PGSHIFT 891.1Sscottrdefine SYSPTSIZE SYSPTSIZE 901.1Sscottrdefine USRPTSIZE USRPTSIZE 911.1Sscottrdefine USRIOSIZE USRIOSIZE 921.1Sscottrdefine USRSTACK USRSTACK 931.1Sscottr 941.1Sscottrdefine MSGBUFPTECNT btoc(sizeof (struct msgbuf)) 951.1Sscottrdefine NMBCLUSTERS NMBCLUSTERS 961.1Sscottrdefine MCLBYTES MCLBYTES 971.1Sscottrdefine NKMEMCLUSTERS NKMEMCLUSTERS 981.1Sscottr 991.1Sscottrquote #ifdef SYSVSHM 1001.1Sscottrdefine SHMMAXPGS SHMMAXPGS 1011.1Sscottrquote #endif 1021.1Sscottr 1031.1Sscottrdefine U_PROF offsetof(struct user, u_stats.p_prof) 1041.1Sscottrdefine U_PROFSCALE offsetof(struct user, u_stats.p_prof.pr_scale) 1051.1Sscottrdefine RU_MINFLT offsetof(struct rusage, ru_minflt) 1061.1Sscottr 1071.1Sscottrdefine T_BUSERR T_BUSERR 1081.1Sscottrdefine T_ADDRERR T_ADDRERR 1091.1Sscottrdefine T_ILLINST T_ILLINST 1101.1Sscottrdefine T_ZERODIV T_ZERODIV 1111.1Sscottrdefine T_CHKINST T_CHKINST 1121.1Sscottrdefine T_TRAPVINST T_TRAPVINST 1131.1Sscottrdefine T_PRIVINST T_PRIVINST 1141.1Sscottrdefine T_TRACE T_TRACE 1151.1Sscottrdefine T_MMUFLT T_MMUFLT 1161.1Sscottrdefine T_SSIR T_SSIR 1171.1Sscottrdefine T_FMTERR T_FMTERR 1181.1Sscottrdefine T_COPERR T_COPERR 1191.1Sscottrdefine T_FPERR T_FPERR 1201.1Sscottrdefine T_ASTFLT T_ASTFLT 1211.1Sscottrdefine T_TRAP15 T_TRAP15 1221.1Sscottrdefine T_FPEMULI T_FPEMULI 1231.1Sscottrdefine T_FPEMULD T_FPEMULD 1241.1Sscottr 1251.1Sscottrdefine PSL_S PSL_S 1261.1Sscottrdefine PSL_IPL7 PSL_IPL7 1271.1Sscottrdefine PSL_LOWIPL PSL_LOWIPL 1281.1Sscottrdefine PSL_HIGHIPL PSL_HIGHIPL 1291.1Sscottrdefine PSL_USER PSL_USER 1301.1Sscottrdefine SPL1 (PSL_S | PSL_IPL1) 1311.1Sscottrdefine SPL2 (PSL_S | PSL_IPL2) 1321.1Sscottrdefine SPL3 (PSL_S | PSL_IPL3) 1331.1Sscottrdefine SPL4 (PSL_S | PSL_IPL4) 1341.1Sscottrdefine SPL5 (PSL_S | PSL_IPL5) 1351.1Sscottrdefine SPL6 (PSL_S | PSL_IPL6) 1361.1Sscottr 1371.1Sscottrdefine FC_USERD FC_USERD 1381.1Sscottrdefine FC_SUPERD FC_SUPERD 1391.1Sscottr 1401.1Sscottrdefine CACHE_ON CACHE_ON 1411.1Sscottrdefine CACHE_OFF CACHE_OFF 1421.1Sscottrdefine CACHE_CLR CACHE_CLR 1431.1Sscottrdefine CACHE40_ON CACHE40_ON 1441.1Sscottrdefine CACHE40_OFF CACHE40_OFF 1451.1Sscottrdefine IC_CLEAR IC_CLEAR 1461.1Sscottrdefine DC_CLEAR DC_CLEAR 1471.1Sscottr 1481.1Sscottrdefine PG_FRAME PG_FRAME 1491.1Sscottr 1501.1Sscottrdefine SIZEOF_PCB sizeof(struct pcb) 1511.1Sscottrdefine PCB_FLAGS offsetof(struct pcb, pcb_flags) 1521.1Sscottrdefine PCB_PS offsetof(struct pcb, pcb_ps) 1531.1Sscottrdefine PCB_USTP offsetof(struct pcb, pcb_ustp) 1541.1Sscottrdefine PCB_USP offsetof(struct pcb, pcb_usp) 1551.1Sscottrdefine PCB_REGS offsetof(struct pcb, pcb_regs) 1561.1Sscottrdefine PCB_ONFAULT offsetof(struct pcb, pcb_onfault) 1571.1Sscottrdefine PCB_FPCTX offsetof(struct pcb, pcb_fpregs) 1581.1Sscottrdefine PCB_TRCB 5 1591.1Sscottr 1601.1Sscottrdefine FR_SP offsetof(struct frame, f_regs[15]) 1611.1Sscottrdefine FR_HW offsetof(struct frame, f_sr) 1621.1Sscottrdefine FR_ADJ offsetof(struct frame, f_stackadj) 1631.1Sscottr 1641.1Sscottrdefine B_READ B_READ 1651.1Sscottr 1661.1Sscottrdefine ENOENT ENOENT 1671.1Sscottrdefine EFAULT EFAULT 1681.1Sscottrdefine ENAMETOOLONG ENAMETOOLONG 1691.1Sscottr 1701.1Sscottrdefine SYS_exit SYS_exit 1711.1Sscottrdefine SYS_execve SYS_execve 1721.1Sscottrdefine SYS_sigreturn SYS_sigreturn 1731.1Sscottr 1741.1Sscottrdefine CPU_68020 CPU_68020 1751.1Sscottrdefine CPU_68030 CPU_68030 1761.1Sscottrdefine CPU_68040 CPU_68040 1771.1Sscottr 1781.1Sscottrdefine MMU_68851 MMU_68851 1791.1Sscottrdefine MMU_68030 MMU_68030 1801.1Sscottrdefine MMU_68040 MMU_68040 1811.1Sscottr 1821.1Sscottrdefine FPU_68881 FPU_68881 1831.1Sscottrdefine FPU_68882 FPU_68882 1841.1Sscottrdefine FPU_68040 FPU_68040 185