summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1999-07-26 02:38:18 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1999-07-26 02:38:18 +0000
commit0b236866b1dc2b28bd8f94454a7e053d0676ab78 (patch)
tree0ac9309798d3d0fc696908d03b04151c832ea974 /sys/arch/i386/include
parentf37b11a3f84b329b6dbc4a54f82b0df0340dcdfb (diff)
Some people don't have enough RAM in their PCs and expect swapping to
work. Fix an array bounds problem with the imask[] array.
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/intr.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/i386/include/intr.h b/sys/arch/i386/include/intr.h
index 897b0e78401..9c8cadb7166 100644
--- a/sys/arch/i386/include/intr.h
+++ b/sys/arch/i386/include/intr.h
@@ -42,6 +42,10 @@
#define IPL_CLOCK 6 /* clock */
#define IPL_HIGH 7 /* everything */
+#ifndef _LOCORE
+int imask[IPL_HIGH+1];
+#endif
+
/* Interrupt sharing types. */
#define IST_NONE 0 /* none */
#define IST_PULSE 1 /* pulsed */
@@ -60,7 +64,6 @@
#ifndef _LOCORE
volatile int cpl, ipending, astpending;
-int imask[7];
extern void Xspllower __P((void));