Move system time display to Rtc.initialize()
This commit is contained in:
1 parent
3c8587acf5
commit
cc1753a75d
2 files changed
+5
-6
No files matched your search
@@ -56,6 +56,10 @@ struct Rtc
|
||||
|
||||
/* Send EOI to enable more RTC interrupts and re-enable NMIs. */
|
||||
eoi();
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
private static ubyte read_register(ubyte register, bool disable_nmi = false)
|
||||
|
||||
Reference in new issue
Block a user