summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/boot.c
diff options
context:
space:
mode:
authordzwdz2021-10-06 22:15:02 +0200
committerdzwdz2021-10-06 22:15:02 +0200
commit7e326b5039bff4d422f66bb8e51267f785193985 (patch)
tree2f991615c4a06ba6c3f0c90d5da896f2b058aafe /src/kernel/arch/i386/boot.c
parent0cd25153a0556b988959c10c5ecab04cbacc9506 (diff)
kernel/i386: implement part of ATA IDENTIFY
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);
}