diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-04-22 18:28:27 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-04-22 18:28:27 +0000 |
commit | c58adbc19a906d100b2fa2166399516e21574bae (patch) | |
tree | 2a049b30c4a4d3b6f9c6d1f6bf337e2efcb70b7b /sys | |
parent | 19cacfa3bdc63efeab683a51d4b4315a1a011fa2 (diff) |
constants for UVM
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc/sparc/genassym.cf | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/arch/sparc/sparc/genassym.cf b/sys/arch/sparc/sparc/genassym.cf index 68951337bdb..24cb9af3f5e 100644 --- a/sys/arch/sparc/sparc/genassym.cf +++ b/sys/arch/sparc/sparc/genassym.cf @@ -1,4 +1,4 @@ -# $OpenBSD: genassym.cf,v 1.2 1997/08/08 08:27:14 downsj Exp $ +# $OpenBSD: genassym.cf,v 1.3 1999/04/22 18:28:26 art Exp $ # $NetBSD: genassym.cf,v 1.2 1997/06/28 19:59:04 pk Exp $ # @@ -59,6 +59,10 @@ include <sys/device.h> include <sys/disklabel.h> include <sys/disk.h> +ifdef UVM +include <uvm/uvm_extern.h> +endif + include <machine/pmap.h> include <machine/cpu.h> @@ -97,9 +101,15 @@ define PMAP_CTX offsetof(struct pmap, pm_ctx) define PMAP_CTXNUM offsetof(struct pmap, pm_ctxnum) # 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) |