diff options
| author | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-17 14:19:40 -0400 |
|---|---|---|
| committer | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-17 14:19:40 -0400 |
| commit | 7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6 (patch) | |
| tree | e99684b87952bded5e51c83848a5d35ab53d9ab0 /kernel/main.c | |
| parent | starting on ata (diff) | |
| parent | clang 18 in flake instead of zig (diff) | |
| download | comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.tar.gz comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.tar.bz2 comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.zip | |
Merge branch 'main' into ata
Diffstat (limited to 'kernel/main.c')
| -rw-r--r-- | kernel/main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/main.c b/kernel/main.c index 4f91d95..7ea47ad 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -2,9 +2,21 @@ #include <comus/memory.h> #include <comus/mboot.h> #include <comus/drivers.h> +#include <comus/drivers/acpi.h> +#include <comus/drivers/pci.h> +#include <comus/drivers/gpu.h> #include <comus/fs.h> #include <lib.h> +void kreport(void) +{ + cpu_report(); + memory_report(); + acpi_report(); + pci_report(); + gpu_report(); +} + void main(long magic, volatile void *mboot) { // initalize idt and pic @@ -22,6 +34,9 @@ void main(long magic, volatile void *mboot) // load file systems fs_init(); + // report system state + kreport(); + // halt kprintf("halting...\n"); } |