artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c77657
)
Allow kern_clock.c to see interrupt frames on i386
author
tholo
<tholo@openbsd.org>
Sun, 20 Apr 1997 20:55:01 +0000
(20:55 +0000)
committer
tholo
<tholo@openbsd.org>
Sun, 20 Apr 1997 20:55:01 +0000
(20:55 +0000)
sys/arch/i386/include/cpu.h
patch
|
blob
|
history
diff --git
a/sys/arch/i386/include/cpu.h
b/sys/arch/i386/include/cpu.h
index
184c772
..
02ab0b0
100644
(file)
--- a/
sys/arch/i386/include/cpu.h
+++ b/
sys/arch/i386/include/cpu.h
@@
-67,7
+67,7
@@
#define CLKF_USERMODE(frame) USERMODE((frame)->if_cs, (frame)->if_eflags)
#define CLKF_BASEPRI(frame) ((frame)->if_ppl == 0)
#define CLKF_PC(frame) ((frame)->if_eip)
-#define CLKF_INTR(frame) (
0) /* XXX should have an interrupt stack */
+#define CLKF_INTR(frame) (
IDXSEL((frame)->if_cs) == GICODE_SEL)
/*
* Preempt the current process if in interrupt from user mode,