# $OpenBSD: genassym.cf,v 1.16 2007/05/28 23:10:10 beck Exp $
# $NetBSD: genassym.cf,v 1.23 2001/08/08 00:09:30 eeh Exp $
#
# Copyright (c) 1997 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Christos Zoulas.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed by the NetBSD
# Foundation, Inc. and its contributors.
# 4. Neither the name of The NetBSD Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Copyright (c) 1992, 1993
# The Regents of the University of California. All rights reserved.
#
# This software was developed by the Computer Systems Engineering group
# at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
# contributed to Berkeley.
#
# All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed by the University of
# California, Lawrence Berkeley Laboratory.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. Neither the name of the University nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# @(#)genassym.c 8.1 (Berkeley) 6/11/93
#
include <sys/param.h>
include <sys/buf.h>
include <sys/proc.h>
include <sys/mbuf.h>
include <sys/msgbuf.h>
include <sys/syscall.h>
include <sys/user.h>
include <sys/device.h>
include <sys/disklabel.h>
include <sys/disk.h>
include <uvm/uvm.h>
ifdef DDB
include <machine/db_machdep.h>
endif
include <machine/pmap.h>
include <machine/cpu.h>
include <machine/bsd_openprom.h>
include <machine/reg.h>
#include <sparc64/sparc64/cpuvar.h>
ifdef notyet
include <sparc64/dev/zsreg.h>
include <sparc64/dev/zsvar.h>
endif
ifdef notyet
include <dev/ic/am7930reg.h>
include <dev/ic/am7930var.h>
endif
# proc fields and values
struct proc
member p_addr
member p_stat
member p_wchan
member p_vmspace
member p_pid
member P_FPSTATE p_md.md_fpstate
export SRUN
export SONPROC
# user structure fields
define USIZ sizeof(struct user)
# VM structure fields
define VM_PMAP offsetof(struct vmspace, vm_map.pmap)
# UVM structure fields
define UVM_PAGE_IDLE_ZERO offsetof(struct uvm, page_idle_zero)
# pmap structure fields
struct pmap
member pm_ctx
member pm_segs
member PM_PHYS pm_physaddr
# interrupt/fault metering
struct uvmexp V_
member swtch
member INTR intrs
member faults
# CPU info structure
struct cpu_info
member ci_curproc
member ci_cpcb
member ci_next
member ci_fpproc
member ci_number
member ci_upaid
member ci_want_resched
member ci_spinup
member ci_initstack
member ci_paddr
# FPU state
struct fpstate64
member fs_regs
member fs_fsr
member fs_gsr
member fs_qsize
member fs_queue
define FS_SIZE sizeof(struct fpstate64)
export FSR_QNE
export FPRS_FEF
export FPRS_DU
export FPRS_DL
# system calls
export SYS_sigreturn
export SYS_execve
export SYS_exit
# errno
export EFAULT
export ENAMETOOLONG
# PCB fields
struct pcb
member pcb_nsaved
member pcb_onfault
member pcb_pstate
member pcb_cwp
member pcb_pil
member pcb_rw
member pcb_sp
member pcb_wcookie
member pcb_pc
member PCB_LASTCALL lastcall
define PCB_SIZE sizeof(struct pcb)
# trapframe64 fields
struct trapframe64
member tf_tstate
member tf_pc
member tf_npc
member tf_fault
member tf_kstack
member tf_y
member tf_pil
member tf_oldpil
member tf_tt
member tf_global
member tf_out
member tf_local
member tf_in
# shortened versions
member TF_G tf_global
member TF_O tf_out
member TF_L tf_local
member TF_I tf_in
define TF_SIZE sizeof(struct trapframe64)
ifdef notyet
# clockframe fields
struct clockframe CF_
member tstate
member pc
member npc
member pil
member oldpil
member fp
endif
# interrupt handler fields
struct intrhand
member ih_fun
member ih_arg
member ih_number
member ih_pil
member ih_busy
member IH_PEND ih_pending
member ih_next
member ih_map
member ih_clr
member IH_COUNT ih_count.ec_count
# mbuf fields of import
struct mbuf
member m_next
member m_data
member m_len
ifdef notyet
# db_regs structure so we can save all registers
struct db_regs
member dbr_traps
member dbr_y
member dbr_tl
member dbr_canrestore
member dbr_cansave
member dbr_cleanwin
member dbr_cwp
member dbr_wstate
member dbr_g
member dbr_ag
member dbr_ig
member dbr_mg
member dbr_out
member dbr_local
member dbr_in
endif
export TLB_ACCESS
export TLB_MODIFY
export TLB_REAL_W
export TLB_TSB_LOCK
export TLB_EXEC
export TLB_EXEC_ONLY
export TLB_L
export TLB_CACHE_MASK
export TLB_CP
export TLB_CV
export TLB_E
export TLB_P
export TLB_W
export TLB_G