Capitalize namespacing structs

This helps to avoid name clashes when breaking up modules into packages.
This commit is contained in:
josh committed 2023-01-01 17:34:41 -05:00
1 parent a423cdf1b1
commit 25ee1775f0
16 files changed
+86 -86

No files matched your search

+3 -3
View File
@@ -6,7 +6,7 @@ module hulk.rtc;
import hulk.cpu;
import hulk.klog;
struct rtc
struct Rtc
{
private enum ubyte PORT_SELECT = 0x70u;
private enum ubyte PORT_DATA = 0x71u;
@@ -53,7 +53,7 @@ struct rtc
/* Read the current system time. */
time t = 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",
t.year, t.month, t.day, t.hour, t.minute, t.second);
/* Send EOI to enable more RTC interrupts and re-enable NMIs. */
@@ -86,7 +86,7 @@ struct rtc
if ((count % 1024) == 0u)
{
seconds++;
klog.writefln("Seconds: %u", seconds);
Klog.writefln("Seconds: %u", seconds);
}
eoi();
}