summaryrefslogtreecommitdiff
path: root/src/kernel/task/idt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/task/idt.h')
-rw-r--r--src/kernel/task/idt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/task/idt.h b/src/kernel/task/idt.h
index b12d6c5..1ac03e2 100644
--- a/src/kernel/task/idt.h
+++ b/src/kernel/task/idt.h
@@ -1,6 +1,12 @@
#ifndef DEF_IDT_H
#define DEF_IDT_H
+/* The IDT is the system descriptor table that tells the CPU what to do when an interrupt fires.
+ There are three categories of interrupts :
+ - Exceptions ; ex: page fault, divide by 0
+ - IRQ : interrupts caused by hardware
+ - System calls : when an applications asks the system to do something */
+
#include <types.h>
struct idt_entry {