From 95d534e12cf193761abf980106eafeca9529ca62 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 26 Feb 1999 04:28:51 +0000 Subject: some uvm constants --- sys/arch/i386/i386/genassym.cf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sys/arch/i386') 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 +ifdef UVM +include +endif + include include include @@ -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) -- cgit v1.2.3