diff options
author | 1999-02-26 04:28:50 +0000 | |
---|---|---|
committer | 1999-02-26 04:28:50 +0000 | |
commit | fd64fbdbb1b2637533d4c8c0fe0ac0f9ec79b8ad (patch) | |
tree | 89b0e7afe9ea8f2d2285e8e6d447a57050adec9a | |
parent | cnt.foo -> uvmexp.bar in uvm (diff) | |
download | wireguard-openbsd-fd64fbdbb1b2637533d4c8c0fe0ac0f9ec79b8ad.tar.xz wireguard-openbsd-fd64fbdbb1b2637533d4c8c0fe0ac0f9ec79b8ad.zip |
some uvm constants
-rw-r--r-- | sys/arch/i386/i386/genassym.cf | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/genassym.cf b/sys/arch/i386/i386/genassym.cf index c811a9dbf20..a5f2962be43 100644 --- a/sys/arch/i386/i386/genassym.cf +++ b/sys/arch/i386/i386/genassym.cf @@ -1,4 +1,4 @@ -# $OpenBSD: genassym.cf,v 1.6 1997/12/09 03:36:39 deraadt Exp $ +# $OpenBSD: genassym.cf,v 1.7 1999/02/26 04:28:50 art Exp $ # # Copyright (c) 1982, 1990 The Regents of the University of California. # All rights reserved. @@ -45,6 +45,10 @@ endif include <vm/vm.h> +ifdef UVM +include <uvm/uvm_extern.h> +endif + include <machine/trap.h> include <machine/pmap.h> include <machine/vmparam.h> @@ -90,8 +94,13 @@ define P_FLAG offsetof(struct proc, p_flag) define P_SYSTEM P_SYSTEM # interrupt/fault metering +ifdef UVM +define V_TRAP offsetof(struct uvmexp, traps) +define V_INTR offsetof(struct uvmexp, intrs) +else define V_TRAP offsetof(struct vmmeter, v_trap) define V_INTR offsetof(struct vmmeter, v_intr) +endif # pcb fields define PCB_CR3 offsetof(struct pcb, pcb_cr3) |