summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/acpi.c1
-rw-r--r--kernel/interrupts.c1
-rw-r--r--kernel/interrupts.h3
-rw-r--r--kernel/spinlock.c2
4 files changed, 6 insertions, 1 deletions
diff --git a/kernel/acpi.c b/kernel/acpi.c
index 9df9c33..b42f628 100644
--- a/kernel/acpi.c
+++ b/kernel/acpi.c
@@ -6,6 +6,7 @@
#include "lib/logger/log.h"
#include "lib/int/stdint.h"
#include "lib/bool/bool.h"
+#include "lib/string/string.h"
#include "smp.h"
diff --git a/kernel/interrupts.c b/kernel/interrupts.c
index 80375c2..c63df72 100644
--- a/kernel/interrupts.c
+++ b/kernel/interrupts.c
@@ -3,7 +3,6 @@
#include "lib/logger/log.h" // logger facilities
#include "interrupts.h"
-#include "lib/int/stdint.h"
#include "x86.h"
diff --git a/kernel/interrupts.h b/kernel/interrupts.h
index 16eb7a6..ce70447 100644
--- a/kernel/interrupts.h
+++ b/kernel/interrupts.h
@@ -1,6 +1,9 @@
#ifndef INTERRUPTS_H
#define INTERRUPTS_H
+#include "lib/int/stdint.h"
+
#define INT_MAX 255 // size of our interrupts table
+void int_install();
#endif
diff --git a/kernel/spinlock.c b/kernel/spinlock.c
index 975de68..c6d0023 100644
--- a/kernel/spinlock.c
+++ b/kernel/spinlock.c
@@ -3,6 +3,8 @@
#include "lib/logger/log.h"
#include "lib/int/stdint.h"
+// https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
+
typedef uint8_t spinlock;
volatile spinlock spinlocks[16];