aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers
diff options
context:
space:
mode:
authorMarvin Borner2020-11-15 18:28:21 +0100
committerMarvin Borner2020-11-15 18:28:21 +0100
commit72143cff9dbde52d6165742e43b1d20b13bb23e7 (patch)
treeeb0adb8aacc77b4a3ab062788e8f015683be36bd /kernel/drivers
parent0621c44e439bedf034399e1bff139ef506039eba (diff)
Added DNS errors
Diffstat (limited to 'kernel/drivers')
-rw-r--r--kernel/drivers/interrupts.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/drivers/interrupts.c b/kernel/drivers/interrupts.c
index dd10ac6..29ff55d 100644
--- a/kernel/drivers/interrupts.c
+++ b/kernel/drivers/interrupts.c
@@ -13,8 +13,8 @@
* IDT
*/
-struct idt_entry idt[256] = { 0 };
-struct idt_ptr idt_ptr = { 0 };
+static struct idt_entry idt[256] = { 0 };
+static struct idt_ptr idt_ptr = { 0 };
void idt_set_gate(u8 num, u32 base, u16 sel, u8 flags)
{
@@ -45,7 +45,7 @@ void idt_install()
* IRQ
*/
-void (*irq_routines[16])(struct regs *) = { 0 };
+static void (*irq_routines[16])(struct regs *) = { 0 };
// Install IRQ handler
void irq_install_handler(int irq, void (*handler)(struct regs *r))
@@ -120,7 +120,7 @@ void irq_install(void)
* ISR
*/
-void (*isr_routines[256])(struct regs *) = { 0 };
+static void (*isr_routines[256])(struct regs *) = { 0 };
const char *isr_exceptions[32] = { "Division By Zero",
"Debug",