summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/boot.c
diff options
context:
space:
mode:
authordzwdz2021-10-09 11:53:38 +0000
committerdzwdz2021-10-09 11:53:38 +0000
commitd9463f6e977ce686ac7a55f22b0b25b0ce67b025 (patch)
tree768fbb673945dba63dc8c5e02f8a4238da4148d7 /src/kernel/arch/i386/boot.c
parentfaed927869451cf4070abba91b5a9cf9e32c9a6c (diff)
parentacf41ff6fee44dd24f9383d96fecd992dcb072e2 (diff)
Merge branch 'main' of github.com:dzwdz/camellia
Diffstat (limited to 'src/kernel/arch/i386/boot.c')
-rw-r--r--src/kernel/arch/i386/boot.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kernel/arch/i386/boot.c b/src/kernel/arch/i386/boot.c
index bd2a00b..94e9e2f 100644
--- a/src/kernel/arch/i386/boot.c
+++ b/src/kernel/arch/i386/boot.c
@@ -1,4 +1,5 @@
#include <kernel/arch/generic.h>
+#include <kernel/arch/i386/ata.h>
#include <kernel/arch/i386/boot.h>
#include <kernel/arch/i386/gdt.h>
#include <kernel/arch/i386/interrupts/idt.h>
@@ -15,7 +16,9 @@ void kmain_early(struct multiboot_info *multiboot) {
gdt_init();
tty_const("idt...");
idt_init();
-
+ tty_const("ata...");
+ ata_init();
+
{ // find the init module
struct multiboot_mod *module = &multiboot->mods[0];
if (multiboot->mods_count < 1) {
@@ -25,6 +28,6 @@ void kmain_early(struct multiboot_info *multiboot) {
info.init.at = module->start;
info.init.size = module->end - module->start;
}
-
+
kmain(info);
}