Make this work for a change.

This commit is contained in:
eeh 1998-07-17 02:33:13 +00:00
parent 69b1b4758d
commit 97081b51be
1 changed files with 57 additions and 42 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: genassym.cf,v 1.1 1998/07/07 03:05:04 eeh Exp $
# $NetBSD: genassym.cf,v 1.2 1998/07/17 02:33:13 eeh Exp $
#
# Copyright (c) 1997 Christos Zoulas. All rights reserved.
@ -58,25 +58,25 @@ include <sys/device.h>
include <sys/disklabel.h>
include <sys/disk.h>
include <machine/db_machdep.h>
include <machine/pmap.h>
include <machine/cpu.h>
include <machine/oldmon.h>
include <machine/bsd_openprom.h>
include <machine/reg.h>
include <sparc/sparc/cpuvar.h>
#include <sparc64/sparc64/cpuvar.h>
ifdef notyet
include <sparc/dev/zsreg.h>
include <sparc/dev/zsvar.h>
include <sparc64/dev/zsreg.h>
include <sparc64/dev/zsvar.h>
endif
include <dev/ic/am7930reg.h>
include <sparc/dev/amd7930var.h>
include <sparc64/dev/amd7930var.h>
include <sparc/dev/fdreg.h>
include <sparc/dev/fdvar.h>
include <sparc64/dev/fdreg.h>
include <sparc64/dev/fdvar.h>
# general constants
define BSD BSD
@ -92,18 +92,24 @@ define SRUN SRUN
# VM structure fields
define VM_PMAP offsetof(struct vmspace, vm_map.pmap)
define VM_PMAP_CTX offsetof(struct vmspace, vm_map.pmap.pm_ctx)
#define VM_PMAP_CTX offsetof(struct vmspace, vm_map.pmap.pm_ctx)
# pmap structure fields
define PM_CTX offsetof(struct pmap, pm_ctx)
define PM_SEGS offsetof(struct pmap, pm_segs)
define PM_PHYS offsetof(struct pmap, pm_physaddr);
define PM_PHYS offsetof(struct pmap, pm_physaddr)
# interrupt/fault metering
ifdef UVM
define V_SWTCH offsetof(struct uvmexp, swtch)
define V_INTR offsetof(struct uvmexp, intrs)
define V_FAULTS offsetof(struct uvmexp, faults)
else
define V_SWTCH offsetof(struct vmmeter, v_swtch)
define V_INTR offsetof(struct vmmeter, v_intr)
define V_FAULTS offsetof(struct vmmeter, v_faults)
endif
# CPU info structure
#define CPUINFO_FAULTSTATUS offsetof(struct cpu_softc, get_faultstatus)
@ -134,51 +140,56 @@ define PCB_PIL offsetof(struct pcb, pcb_pil)
define PCB_RW offsetof(struct pcb, pcb_rw)
define PCB_SP offsetof(struct pcb, pcb_sp)
define PCB_PC offsetof(struct pcb, pcb_pc)
define PCB_UW offsetof(struct pcb, pcb_uw)
define PCB_WIM offsetof(struct pcb, pcb_wim)
define PCB_LASTCALL offsetof(struct pcb, lastcall)
define PCB_SIZE sizeof(struct pcb)
# trapframe fields
define TF_TSTATE offsetof(struct trapframe, tf_tstate);
define TF_PC offsetof(struct trapframe, tf_pc);
define TF_NPC offsetof(struct trapframe, tf_npc);
define TF_FAULT offsetof(struct trapframe, tf_fault);
define TF_KSTACK offsetof(struct trapframe, tf_kstack);
define TF_Y offsetof(struct trapframe, tf_y);
define TF_INTR offsetof(struct trapframe, tf_intr);
define TF_GLOBAL offsetof(struct trapframe, tf_global);
define TF_OUT offsetof(struct trapframe, tf_out);
define TF_LOCAL offsetof(struct trapframe, tf_local);
define TF_IN offsetof(struct trapframe, tf_in);
define TF_TSTATE offsetof(struct trapframe, tf_tstate)
define TF_PC offsetof(struct trapframe, tf_pc)
define TF_NPC offsetof(struct trapframe, tf_npc)
define TF_FAULT offsetof(struct trapframe, tf_fault)
define TF_KSTACK offsetof(struct trapframe, tf_kstack)
define TF_Y offsetof(struct trapframe, tf_y)
define TF_PIL offsetof(struct trapframe, tf_pil)
define TF_OLDPIL offsetof(struct trapframe, tf_oldpil)
define TF_TT offsetof(struct trapframe, tf_tt)
define TF_GLOBAL offsetof(struct trapframe, tf_global)
define TF_OUT offsetof(struct trapframe, tf_out)
define TF_LOCAL offsetof(struct trapframe, tf_local)
define TF_IN offsetof(struct trapframe, tf_in)
# shortened versions
define TF_G offsetof(struct trapframe, tf_global);
define TF_O offsetof(struct trapframe, tf_out);
define TF_L offsetof(struct trapframe, tf_local);
define TF_I offsetof(struct trapframe, tf_in);
define TF_G offsetof(struct trapframe, tf_global)
define TF_O offsetof(struct trapframe, tf_out)
define TF_L offsetof(struct trapframe, tf_local)
define TF_I offsetof(struct trapframe, tf_in)
define TF_SIZE sizeof(struct trapframe)
ifdef notyet
# clockframe fields
define CF_TSTATE offsetof(struct clockframe, tstate);
define CF_PC offsetof(struct clockframe, pc);
define CF_NPC offsetof(struct clockframe, npc);
define CF_PIL offsetof(struct clockframe, pil);
define CF_OLDPIL offsetof(struct clockframe, oldpil);
define CF_FP offsetof(struct clockframe, fp);
define CF_TSTATE offsetof(struct clockframe, tstate)
define CF_PC offsetof(struct clockframe, pc)
define CF_NPC offsetof(struct clockframe, npc)
define CF_PIL offsetof(struct clockframe, pil)
define CF_OLDPIL offsetof(struct clockframe, oldpil)
define CF_FP offsetof(struct clockframe, fp)
endif
# interrupt handler fields */
define IH_FUN offsetof(struct intrhand, ih_fun);
define IH_ARG offsetof(struct intrhand, ih_arg);
define IH_NUMBER offsetof(struct intrhand, ih_number);
define IH_PIL offsetof(struct intrhand, ih_pil);
define IH_NEXT offsetof(struct intrhand, ih_next);
define IH_MAP offsetof(struct intrhand, ih_map);
define IH_CLR offsetof(struct intrhand, ih_clr);
define IH_FUN offsetof(struct intrhand, ih_fun)
define IH_ARG offsetof(struct intrhand, ih_arg)
define IH_NUMBER offsetof(struct intrhand, ih_number)
define IH_PIL offsetof(struct intrhand, ih_pil)
define IH_NEXT offsetof(struct intrhand, ih_next)
define IH_MAP offsetof(struct intrhand, ih_map)
define IH_CLR offsetof(struct intrhand, ih_clr)
ifdef notyet
# ZSCC interrupt fields
define ZSC_A offsetof(struct zs_softc, sc_a)
define ZSC_B offsetof(struct zs_softc, sc_b)
define ZL_WREG offsetof(struct zs_line, zl_wreg)
#define ZL_WREG offsetof(struct zs_line, zl_wreg)
define ZL_TBC offsetof(struct zs_line, zl_tbc)
define ZL_TBA offsetof(struct zs_line, zl_tba)
define ZL_RBPUT offsetof(struct zs_line, zl_rbput)
@ -186,6 +197,7 @@ define ZL_RBUF offsetof(struct zs_line, zl_rbuf)
define ZSRR1_DO_bit ffs(ZSRR1_DO) - 1
endif
ifdef notyet
# audio trap handler fields
define AU_AMD offsetof(struct auio, au_amd)
define AU_RDATA offsetof(struct auio, au_rdata)
@ -197,8 +209,9 @@ define AU_EVCNT offsetof(struct auio, au_intrcnt.ev_count)
define AMD_IR offsetof(struct amd7930, ir)
define AMD_BBRB offsetof(struct amd7930, bbrb)
define AMD_BBTB offsetof(struct amd7930, bbtb)
endif
define PROM_BASE PROM_BASE
#define PROM_BASE PROM_BASE
define PV_NODEOPS offsetof(struct promvec, pv_nodeops)
define PV_HALT offsetof(struct promvec, pv_halt)
@ -208,8 +221,10 @@ define PV_ROMVEC_VERS offsetof(struct promvec, pv_romvec_vers)
define NO_NEXTNODE offsetof(struct nodeops, no_nextnode)
define NO_GETPROP offsetof(struct nodeops, no_getprop)
ifdef notyet
define OLDMON_PRINTF offsetof(struct om_vector, printf)
define OLDMON_HALT offsetof(struct om_vector, exitToMon)
endif
# floppy trap handler fields
define FDC_REG_MSR offsetof(struct fdcio, fdcio_reg_msr)