Fix bug in ATA PIO driver
diff --git a/src/kernel/main.c b/src/kernel/main.c
index 098d37b..53fb71e 100644
--- a/src/kernel/main.c
+++ b/src/kernel/main.c
@@ -101,6 +101,7 @@
test_ata_pio();
#endif
+#if 1 // ifdef TEST_EXT2
if (ext2_valid_filesystem())
{
kprintf(OKAY "EXT2 filesystem is valid, again = %b\n", ext2_valid_filesystem());
@@ -109,6 +110,11 @@
//ext2_mount(&root);
}
+ // Try reading the regions that the ext2 needs
+ // uchar buffer[1024];
+ // ata_pio_read_sectors(buffer, 2, 2);
+#endif
+
while (true)
asm("hlt");