-# $OpenBSD: genassym.cf,v 1.42 2024/03/29 21:14:31 miod Exp $
+# $OpenBSD: genassym.cf,v 1.43 2024/03/29 21:14:56 miod Exp $
# $NetBSD: genassym.cf,v 1.23 2001/08/08 00:09:30 eeh Exp $
#
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_extern.h>
-ifdef DDB
-include <machine/db_machdep.h>
-endif
include <machine/pmap.h>
include <machine/cpu.h>
-include <machine/mutex.h>
include <machine/fsr.h>
include <machine/reg.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
# pmap structure fields
struct pmap
member pm_ctx
-member pm_segs
member PM_PHYS pm_physaddr
# interrupt/fault metering
member ci_self
member ci_curproc
member ci_cpcb
-member ci_next
member ci_fpproc
-member ci_cpuid
-member ci_upaid
-member ci_want_resched
member ci_handled_intr_level
member ci_intrpending
member ci_tickintr
member ci_cpumq
member ci_devmq
endif
-ifdef DIAGNOSTIC
-member ci_mutex_level
-endif
# FPU state
struct fpstate
# system calls
export SYS_sigreturn
-export SYS_execve
-export SYS_exit
# errno
export EFAULT
member pcb_sp
member pcb_wcookie
member pcb_pc
-member PCB_LASTCALL lastcall
-define PCB_SIZE sizeof(struct pcb)
# trapframe fields
struct trapframe
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_I tf_in
define TF_SIZE sizeof(struct trapframe)
-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_PEND ih_pending
-member ih_next
member ih_ack
member IH_COUNT ih_count.ec_count
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 TSB_TAG_LOCKED
export SUN4U_TLB_ACCESS
export SUN4V_TLB_EXEC
export SUN4V_TLB_W
-struct mutex
-member mtx_wantipl
-member mtx_oldipl
-member mtx_owner
-
export CPU_SUN4U
export CPU_SUN4V