summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/include
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2011-04-05 15:46:54 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2011-04-05 15:46:54 +0000
commitb92c0168f8f97067797ab4c4fc3d202ba0891393 (patch)
tree39464d62663159833dda4cc8759a5a051e331d10 /sys/arch/hppa64/include
parent3be1522646f928aa370da0731022ea187083d023 (diff)
Move PSW in struct cpu_info. Also ensure that we leave interrupts disabled
when switching to virtual mode in the trap handler. Re-enabling interrupts whilst in the trap handler for an interrupt makes life interesting. ok kettenis@
Diffstat (limited to 'sys/arch/hppa64/include')
-rw-r--r--sys/arch/hppa64/include/cpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/hppa64/include/cpu.h b/sys/arch/hppa64/include/cpu.h
index 88b5d46be49..4a328282ce5 100644
--- a/sys/arch/hppa64/include/cpu.h
+++ b/sys/arch/hppa64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.19 2010/12/21 14:56:23 claudio Exp $ */
+/* $OpenBSD: cpu.h,v 1.20 2011/04/05 15:46:53 jsing Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -116,6 +116,8 @@
#include <sys/sched.h>
struct cpu_info {
+ volatile int ci_psw;
+
struct proc *ci_curproc;
struct pcb *ci_cpcb;
struct cpu_info *ci_next;