diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-16 16:48:56 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-16 16:48:56 -0400 |
commit | 730aafc1758e4096853c2491345901a296b4cc3e (patch) | |
tree | 45f8ffde614a9d30f0c93e1155fc6d799d10e94f /kernel/main.c | |
parent | add binary radix (%b) to printf (diff) | |
download | comus-730aafc1758e4096853c2491345901a296b4cc3e.tar.gz comus-730aafc1758e4096853c2491345901a296b4cc3e.tar.bz2 comus-730aafc1758e4096853c2491345901a296b4cc3e.zip |
remove all printing to report functions
Diffstat (limited to 'kernel/main.c')
-rw-r--r-- | kernel/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/main.c b/kernel/main.c index 4f91d95..f600320 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -1,10 +1,21 @@ +#include "lib/kio.h" #include <comus/cpu.h> #include <comus/memory.h> #include <comus/mboot.h> #include <comus/drivers.h> +#include <comus/drivers/acpi.h> +#include <comus/drivers/pci.h> #include <comus/fs.h> #include <lib.h> +void kreport(void) +{ + cpu_report(); + memory_report(); + acpi_report(); + pci_report(); +} + void main(long magic, volatile void *mboot) { // initalize idt and pic @@ -22,6 +33,9 @@ void main(long magic, volatile void *mboot) // load file systems fs_init(); + // report system state + kreport(); + // halt kprintf("halting...\n"); } |