summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1997-04-20 20:55:01 +0000
committertholo <tholo@openbsd.org>1997-04-20 20:55:01 +0000
commitfdd3d32dfca01081b77939ea35338932df824d10 (patch)
treeccb9894e7f038862ea45f14a4a3cf6907ad52898
parentAdd new POSIX 1003.1b related syscalls; from pk@NetBSD (diff)
downloadwireguard-openbsd-fdd3d32dfca01081b77939ea35338932df824d10.tar.xz
wireguard-openbsd-fdd3d32dfca01081b77939ea35338932df824d10.zip
Allow kern_clock.c to see interrupt frames on i386
-rw-r--r--sys/arch/i386/include/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h
index 184c772b601..02ab0b02ca9 100644
--- 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,