Fix ATA read.

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2021-12-11 16:32:09 +01:00
parent d0a0f338c7
commit ac3141a6d8
3 changed files with 378 additions and 328 deletions
-2
View File
@@ -18,8 +18,6 @@
#pragma once
#include "stdint.h"
/// @brief Initializes the ATA drivers.
/// @return 0 on success, 1 on error.
int ata_initialize();
+372 -320
View File
File diff suppressed because it is too large Load Diff
+6 -6
View File
@@ -260,12 +260,12 @@ int kmain(boot_info_t *boot_informations)
print_ok();
//==========================================================================
#if 0
// For debugging, show the list of PCI devices.
pci_debug_scan();
// Scan for ata devices.
ata_initialize();
#endif
// Scan for ata devices.
if (!ata_initialize()) {
print_fail();
return 1;
}
print_ok();
//==========================================================================
pr_notice("Setting up keyboard driver...\n");