Add console header line

This commit is contained in:
josh committed 2023-10-21 17:08:45 -04:00
1 parent 4273c703e9
commit 8638840cd8
3 files changed
+64 -11

No files matched your search

+6 -1
View File
@@ -66,6 +66,7 @@ void hulk_start()
hulk_header.bootinfo.fb.height,
hulk_header.bootinfo.fb.stride);
Console.initialize();
Rtc.initialize();
Console.clear();
Klog.initialize();
@@ -75,7 +76,11 @@ void hulk_start()
Pic.initialize();
Acpi.initialize(hulk_header.bootinfo.acpi_xsdt_phys);
Apic.initialize();
Rtc.initialize();
/* Read the current system time. */
Rtc.time t = Rtc.read_rtc_time();
Klog.writefln("System time is 20%02u-%02u-%02u %02u:%02u:%02u",
t.year, t.month, t.day, t.hour, t.minute, t.second);
Pci.initialize();
sti();