feat(atapi): add discover_drive in init_k

This commit is contained in:
Malo Lecomte 2021-07-29 03:59:52 +02:00
parent bb67c07642
commit 9f41ddd242

7
k/k.c

@ -30,6 +30,7 @@
#include "pic/pit.h" #include "pic/pit.h"
#include "serial.h" #include "serial.h"
#include "stdio.h" #include "stdio.h"
#include "iso.h"
static void k_init(void) static void k_init(void)
{ {
@ -38,6 +39,7 @@ static void k_init(void)
init_idt(); init_idt();
remap_pic(); remap_pic();
init_pit(); init_pit();
discover_atapi_drive();
} }
void k_main(unsigned long magic, multiboot_info_t *info) void k_main(unsigned long magic, multiboot_info_t *info)
@ -50,7 +52,10 @@ void k_main(unsigned long magic, multiboot_info_t *info)
k_init(); k_init();
printf("bonjour\r\n"); //printf("bonjour\r\n");
poggers();
for (unsigned i = 0; ; ) { for (unsigned i = 0; ; ) {
*fb = star[i++ % 4]; *fb = star[i++ % 4];
} }