feat: rank drivers at compile time

This commit is contained in:
2021-03-07 20:30:07 +01:00
parent f6e720bad9
commit 945b18b2b2
11 changed files with 1254 additions and 62 deletions

View File

@@ -30,7 +30,6 @@ void init_mmap(multiboot_info_t *multiboot_info) {
}
void init_pci_system() {
pci_sort_drivers();
pci_scan();
pci_init_drivers();
}
@@ -60,9 +59,6 @@ void noreturn used kmain(multiboot_info_t *multiboot_info, uint32_t mb_name) {
// identify cpu
cpuidx_print_info();
// pre init drivers
block_dev_pre_init();
// enable interrupts
__asm__ __volatile__("sti");
// start the timer