summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/include/cpu.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-09-20 13:57:38 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-09-20 13:57:38 +0000
commit7ea27ab2a221e6997bebcc29a89aba11ffc997de (patch)
tree2bdc6cd76e2d5e0135e5d641d944cbb2eed36b35 /sys/arch/mvme88k/include/cpu.h
parent9f630f25366256c52721937800ddbb8958053097 (diff)
Cleanup uses of intstack and interrupt_stack[] - also makes time % in top
more realistic.
Diffstat (limited to 'sys/arch/mvme88k/include/cpu.h')
-rw-r--r--sys/arch/mvme88k/include/cpu.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/mvme88k/include/cpu.h b/sys/arch/mvme88k/include/cpu.h
index 3fd474334a2..ebbdbb7de5a 100644
--- a/sys/arch/mvme88k/include/cpu.h
+++ b/sys/arch/mvme88k/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.20 2003/06/02 23:27:52 millert Exp $ */
+/* $OpenBSD: cpu.h,v 1.21 2003/09/20 13:57:35 miod Exp $ */
/*
* Copyright (c) 1996 Nivas Madhur
* Copyright (c) 1992, 1993
@@ -77,11 +77,9 @@ struct clockframe {
struct trapframe tf;
};
-extern int intstack;
-
#define CLKF_USERMODE(framep) ((((struct trapframe *)(framep))->epsr & PSR_MODE) == 0)
-#define CLKF_PC(framep) (((struct trapframe *)(framep))->sxip & ~3)
-#define CLKF_INTR(framep) (((struct trapframe *)(framep))->r[31] > intstack)
+#define CLKF_PC(framep) (((struct trapframe *)(framep))->sxip & XIP_ADDR)
+#define CLKF_INTR(framep) (((struct trapframe *)(framep))->r[31] >= UADDR)
/*
* Get interrupt glue.