summaryrefslogtreecommitdiff
path: root/i386/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-28 21:27:36 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-28 21:27:36 +0200
commitecc99f77810305304893d188d25e598f5645ecaf (patch)
treeccf5769f7bc8394140dd177ac00bcb65bbe6ee64 /i386/i386
parent87cf68424591ec4576ecfc5833b2babf2d674459 (diff)
Fix crash at boot
spl cannot be called before the clock is set up.
Diffstat (limited to 'i386/i386')
-rw-r--r--i386/i386/pic.c1
-rw-r--r--i386/i386/spl.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/i386/i386/pic.c b/i386/i386/pic.c
index 2431c838..66fbc04a 100644
--- a/i386/i386/pic.c
+++ b/i386/i386/pic.c
@@ -76,6 +76,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
spl_t curr_ipl[NCPUS] = {0};
int curr_pic_mask;
+int spl_init = 0;
int iunit[NINTR] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
diff --git a/i386/i386/spl.h b/i386/i386/spl.h
index 173629fe..2a3f1a3a 100644
--- a/i386/i386/spl.h
+++ b/i386/i386/spl.h
@@ -69,6 +69,7 @@ extern void splon (unsigned long n);
extern unsigned long sploff (void);
extern void setsoftclock (void);
+extern int spl_init;
/* XXX Include each other... */
#include <i386/ipl.h>