1# $OpenBSD: genassym.cf,v 1.48 2019/06/11 15:23:41 mpi Exp $ 2 3# 4# Copyright (c) 1982, 1990, 1993 5# The Regents of the University of California. All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions 9# are met: 10# 1. Redistributions of source code must retain the above copyright 11# notice, this list of conditions and the following disclaimer. 12# 2. Redistributions in binary form must reproduce the above copyright 13# notice, this list of conditions and the following disclaimer in the 14# documentation and/or other materials provided with the distribution. 15# 3. Neither the name of the University nor the names of its contributors 16# may be used to endorse or promote products derived from this software 17# without specific prior written permission. 18# 19# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29# SUCH DAMAGE. 30# 31# @(#)genassym.c 8.3 (Berkeley) 1/4/94 32# 33 34include <sys/param.h> 35include <sys/systm.h> 36include <sys/buf.h> 37include <sys/proc.h> 38include <sys/mbuf.h> 39include <sys/msgbuf.h> 40include <sys/syscall.h> 41include <sys/user.h> 42 43include <uvm/uvm_extern.h> 44 45include <machine/cpu.h> 46include <machine/frame.h> 47include <machine/iomod.h> 48include <machine/mutex.h> 49include <machine/pmap.h> 50include <machine/psl.h> 51include <machine/pte.h> 52include <machine/reg.h> 53 54# general constants 55export HPPA_PID_KERNEL 56export HPPA_SID_KERNEL 57export VM_MAXUSER_ADDRESS 58 59# `break' entry points 60export HPPA_BREAK_KERNEL 61export HPPA_BREAK_GET_PSW 62export HPPA_BREAK_SET_PSW 63 64# saved state fields 65struct trapframe 66member tf_flags 67member TF_PHYS tf_sar 68member tf_r1 69member TF_R2 tf_rp 70member TF_GOTO tf_rp 71member tf_r3 72member tf_r4 73member tf_r5 74member tf_r6 75member tf_r7 76member tf_r8 77member tf_r9 78member tf_r10 79member tf_r11 80member tf_r12 81member tf_r13 82member tf_r14 83member tf_r15 84member tf_r16 85member tf_r17 86member tf_r18 87member TF_R19 tf_t4 88member TF_R20 tf_t3 89member TF_R21 tf_t2 90member TF_R22 tf_t1 91member TF_R23 tf_arg3 92member TF_R24 tf_arg2 93member TF_R25 tf_arg1 94member TF_R26 tf_arg0 95member TF_R27 tf_dp 96member TF_R28 tf_ret0 97member TF_R29 tf_ret1 98member TF_R30 tf_sp 99member tf_r31 100member tf_sr0 101member tf_sr1 102member tf_sr2 103member tf_sr3 104member tf_sr4 105member tf_sr5 106member tf_sr6 107member tf_sr7 108member TF_CR0 tf_rctr 109member TF_CR10 tf_ccr 110member TF_IIOQH tf_iioq_head 111member TF_IIOQT tf_iioq_tail 112member TF_IISQH tf_iisq_head 113member TF_IISQT tf_iisq_tail 114member TF_CR8 tf_pidr1 115member TF_CR9 tf_pidr2 116member TF_CR11 tf_sar 117member TF_CR12 tf_pidr3 118member TF_CR13 tf_pidr4 119member TF_CR15 tf_eiem 120member TF_CR19 tf_iir 121member TF_CR20 tf_isr 122member TF_CR21 tf_ior 123member TF_CR22 tf_ipsw 124member TF_CR23 tf_eirr 125member TF_CR25 tf_vtop 126member tf_cr27 127member tf_cr28 128member tf_cr30 129 130# proc fields and values 131struct proc 132member p_addr 133member p_stat 134member p_md 135member P_MD_FLAGS p_md.md_flags 136member P_MD_REGS p_md.md_regs 137 138export SONPROC 139 140struct pcb 141member pcb_fpstate 142member pcb_onfault 143member pcb_space 144member pcb_ksp 145 146struct user 147member u_pcb 148 149struct uvmexp 150member fpswtch 151 152struct cpu_info 153member ci_curproc 154member ci_stack 155member ci_psw 156member ci_cpl 157member ci_ipending 158member ci_trap_save 159member ci_fpu_state 160member ci_ipi 161member ci_hpa 162 163struct hppa_fpstate 164member hfp_regs 165member hfp_cpu 166 167# system calls 168export SYSCALLGATE 169export SYS_exit 170export SYS_execve 171export SYS_sigreturn 172 173# errno 174export EFAULT 175export ENAMETOOLONG 176