aboutsummaryrefslogtreecommitdiff
path: root/core/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/kernel.c')
-rw-r--r--core/kernel.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/core/kernel.c b/core/kernel.c
index c159aef..098db12 100644
--- a/core/kernel.c
+++ b/core/kernel.c
@@ -12,24 +12,33 @@
* more details.
*/
+#include <garmos/idt.h>
#include <garmos/gdt.h>
#include <garmos/kernel.h>
#include <garmos/term.h>
#include <garmos/types.h>
-
void ker_dbg(char *s)
{
term_print(s);
term_print("\n");
}
+uint32_t kernel_handle_interrupt(uint8_t no, uint32_t esp)
+{
+ return esp;
+}
+
void kernel_main(uint32_t multiboot, unsigned int *magicno)
{
+ term_clear();
+
gdt_init();
+ idt_init();
+
+ idt_activate();
- term_clear();
term_print("garmos 0.1.0\n\n");
- while(1);
+ while (1);
}