1# $NetBSD: genassym.cf,v 1.24 2000/07/26 11:48:51 ragge Exp $ 2# 3# Copyright (c) 1997 Ludd, University of Lule}, Sweden. 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: 9# 1. Redistributions of source code must retain the above copyright 10# notice, this list of conditions and the following disclaimer. 11# 2. Redistributions in binary form must reproduce the above copyright 12# notice, this list of conditions and the following disclaimer in the 13# documentation and/or other materials provided with the distribution. 14# 3. All advertising materials mentioning features or use of this software 15# must display the following acknowledgement: 16# This product includes software developed at Ludd, University of 17# Lule}, Sweden and its contributors. 18# 4. The name of the author may not be used to endorse or promote products 19# derived from this software without specific prior written permission 20# 21# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31# 32 33 34include <sys/param.h> 35include <sys/proc.h> 36include <sys/errno.h> 37include <sys/syscall.h> 38include <sys/sched.h> 39include <sys/device.h> 40 41include <uvm/uvm.h> 42 43include <machine/mtpr.h> 44include <machine/pcb.h> 45include <machine/sid.h> 46include <machine/trap.h> 47include <machine/cpu.h> 48include <machine/uvax.h> 49 50define P_PRIORITY offsetof(struct proc, p_priority) 51define P_ADDR offsetof(struct proc, p_addr) 52define P_VMSPACE offsetof(struct proc, p_vmspace) 53define P_STAT offsetof(struct proc, p_stat) 54define P_BACK offsetof(struct proc, p_back) 55define P_CPU offsetof(struct proc, p_cpu) 56 57define PH_RLINK offsetof(struct prochd, ph_rlink) 58 59define SONPROC SONPROC 60 61define P0BR offsetof(struct pcb, P0BR) 62define P0LR offsetof(struct pcb, P0LR) 63define P1BR offsetof(struct pcb, P1BR) 64define P1LR offsetof(struct pcb, P1LR) 65define IFTRAP offsetof(struct pcb, iftrap) 66define ESP offsetof(struct pcb, ESP) 67define SSP offsetof(struct pcb, SSP) 68 69define MCHK offsetof(struct cpu_dep, cpu_mchk) 70define MEMERR offsetof(struct cpu_dep, cpu_memerr) 71define BADADDR offsetof(struct cpu_dep, cpu_badaddr) 72 73define KERNBASE KERNBASE 74 75define UVM_PAGE_IDLE_ZERO offsetof(struct uvm, page_idle_zero) 76 77define CI_CURPROC offsetof(struct cpu_info, ci_curproc) 78define CI_WANT_RESCHED offsetof(struct cpu_info, ci_want_resched) 79define CI_EXIT offsetof(struct cpu_info, ci_exit) 80 81# mtpr register numbers 82define PR_KSP PR_KSP 83define PR_ESP PR_ESP 84define PR_SSP PR_SSP 85define PR_USP PR_USP 86define PR_ICCS PR_ICCS 87define PR_PCBB PR_PCBB 88define PR_IPL PR_IPL 89define PR_SBIFS PR_SBIFS 90define PR_EHSR PR_EHSR 91define PR_MCESR PR_MCESR 92define PR_P0BR PR_P0BR 93define PR_P1BR PR_P1BR 94define PR_P0LR PR_P0LR 95define PR_P1LR PR_P1LR 96define PR_SCBB PR_SCBB 97 98# trap numbering 99define T_KSPNOTVAL T_KSPNOTVAL 100define T_PRIVINFLT T_PRIVINFLT 101define T_XFCFLT T_XFCFLT 102define T_RESOPFLT T_RESOPFLT 103define T_RESADFLT T_RESADFLT 104define T_TRANSFLT T_TRANSFLT 105define T_PTEFETCH T_PTEFETCH 106define T_WRITE T_WRITE 107define T_ACCFLT T_ACCFLT 108define T_PTELEN T_PTELEN 109define T_TRCTRAP T_TRCTRAP 110define T_BPTFLT T_BPTFLT 111define T_ARITHFLT T_ARITHFLT 112define T_SYSCALL T_SYSCALL 113define T_ASTFLT T_ASTFLT 114define T_KDBTRAP T_KDBTRAP 115 116define USPACE USPACE 117 118define ENAMETOOLONG ENAMETOOLONG 119define EFAULT EFAULT 120 121define EV_COUNT offsetof(struct evcnt, ev_count) 122 123define SYS___sigreturn14 SYS___sigreturn14 124define SYS_exit SYS_exit 125 126define VAX_TYP_UV2 VAX_TYP_UV2 127define VAX_TYP_8SS VAX_TYP_8SS 128define VAX_BTYP_46 VAX_BTYP_46 129define VAX_BTYP_48 VAX_BTYP_48 130define VAX_BTYP_49 VAX_BTYP_49 131 132define IPL_HIGH IPL_HIGH 133define IPL_CLOCK IPL_CLOCK 134define IPL_NONE IPL_NONE 135 136define SHD_INTRS offsetof(struct softintr_head, shd_intrs.lh_first) 137define SH_ARG offsetof(struct softintr_handler, sh_arg) 138define SH_FUNC offsetof(struct softintr_handler, sh_func) 139define SH_NEXT offsetof(struct softintr_handler, sh_link.le_next) 140define SH_PENDING offsetof(struct softintr_handler, sh_pending) 141 142define VC_DIAGTIMM offsetof(struct vs_cpu, vc_diagtimm) 143 144define PSL_IS PSL_IS 145