From de20d7430df08731d9108acb83e1234ba7f1fe16 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 19 Sep 2020 14:53:29 -0400 Subject: file manager --- src/kernel/main.c | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'src/kernel/main.c') diff --git a/src/kernel/main.c b/src/kernel/main.c index 06b83d1..b34f816 100644 --- a/src/kernel/main.c +++ b/src/kernel/main.c @@ -15,9 +15,6 @@ #include "vga.h" #include "kbd.h" -void reset_tree(); -void tree(struct drive *d); - void _start_user_mode() __attribute__ ((noreturn)); __attribute__ ((noreturn)) @@ -35,6 +32,7 @@ void main() { pci_init(); +/* u16_dec(n_pci_devices, nbuf); logsz(nbuf); logsz(" PCI device(s) found:\n"); @@ -63,6 +61,7 @@ void main() { } logch('\n'); +*/ init_fat(); //other fs drivers @@ -72,6 +71,7 @@ void main() { init_ide(); //other drive drivers +/* u8_dec(n_drives, nbuf); logsz(nbuf); logsz(" drive(s) found:\n"); @@ -108,20 +108,7 @@ void main() { } logch('\n'); - - for (uint8_t n = 0; n < n_drives; ++n) { - if (drives[n].get_free_sectors(drives + n) == -1) - continue; - - u32_dec(n, nbuf); - logsz("sd"); - logsz(nbuf); - logsz(" tree:\n"); - - reset_tree(); - tree(drives + n); - logch('\n'); - } +*/ if (BOOT_INFO->support_flags & BIS_PAE) logsz("Processor supports PAE (but Portland OS does not yet).\n"); -- cgit v1.2.3