aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/kernel.c
diff options
context:
space:
mode:
authorMarvin Borner2020-04-15 21:17:41 +0200
committerMarvin Borner2020-04-15 21:17:41 +0200
commite07894d21a0101b10ee6ad851773b725cbb9150d (patch)
tree75631b318a9403395fbb3b40abdade8a475cd30b /src/kernel/kernel.c
parentaa3d1b4689e6dadd982fe1e5ca8af69ca39c617d (diff)
Used macro magic to implement function-based logs
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r--src/kernel/kernel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c
index f116ab8..e0c4f54 100644
--- a/src/kernel/kernel.c
+++ b/src/kernel/kernel.c
@@ -50,6 +50,7 @@ void kernel_main(uint32_t magic, multiboot_info_t *grub_header)
network_install();
sti();
+ log("%x", 0x42);
vfs_init();
ata_init();
ext2_init("/dev/hda", "/");
@@ -60,7 +61,7 @@ void kernel_main(uint32_t magic, multiboot_info_t *grub_header)
// Print total memory
info("Total memory found: %dMiB", (memory_get_all() >> 10) + 1);
- serial_printf("Total memory found: %dMiB", (memory_get_all() >> 10) + 1);
+ log("Total memory found: %dMiB", (memory_get_all() >> 10) + 1);
#ifdef INSTALL_MELVIX
panic("Installation isn't supported right now!");