summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-02-26 04:28:51 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-02-26 04:28:51 +0000
commit95d534e12cf193761abf980106eafeca9529ca62 (patch)
tree02a3fbe2a96970574c3ff1ec0877cfd9e91bc96a /sys/arch/i386
parent2bfb0c9ea82a95d21abddab56027c04d1df3f51f (diff)
some uvm constants
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/genassym.cf11
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)