Initialize RTC after APIC
This commit is contained in:
parent
bcf1bd3bde
commit
e1f38bd5ea
@ -66,7 +66,6 @@ void hulk_start()
|
|||||||
hulk_header.bootinfo.fb.height,
|
hulk_header.bootinfo.fb.height,
|
||||||
hulk_header.bootinfo.fb.stride);
|
hulk_header.bootinfo.fb.stride);
|
||||||
Console.initialize();
|
Console.initialize();
|
||||||
Rtc.initialize();
|
|
||||||
Console.clear();
|
Console.clear();
|
||||||
Klog.initialize();
|
Klog.initialize();
|
||||||
|
|
||||||
@ -76,6 +75,7 @@ void hulk_start()
|
|||||||
Pic.initialize();
|
Pic.initialize();
|
||||||
Acpi.initialize(hulk_header.bootinfo.acpi_xsdt_phys);
|
Acpi.initialize(hulk_header.bootinfo.acpi_xsdt_phys);
|
||||||
Apic.initialize();
|
Apic.initialize();
|
||||||
|
Rtc.initialize();
|
||||||
/* Read the current system time. */
|
/* Read the current system time. */
|
||||||
Rtc.time t = Rtc.read_rtc_time();
|
Rtc.time t = Rtc.read_rtc_time();
|
||||||
Klog.writefln("System time is 20%02u-%02u-%02u %02u:%02u:%02u",
|
Klog.writefln("System time is 20%02u-%02u-%02u %02u:%02u:%02u",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user