Rename Hurl to hurl for consistency

This commit is contained in:
josh committed 2022-10-18 20:59:13 -04:00
1 parent edbe33bcfa
commit 41531cf4d2
4 files changed
+7 -7

No files matched your search

+4 -4
View File
@@ -58,7 +58,7 @@ struct acpi
public static void initialize(ulong acpi_xsdt_phys)
{
/* Map the XSDT header. */
Hurl.map_range(acpi_xsdt_phys, Xsdt.sizeof, 0u);
hurl.map_range(acpi_xsdt_phys, Xsdt.sizeof, 0u);
const(Xsdt) * xsdt = cast(const(Xsdt) *)acpi_xsdt_phys;
if (xsdt.header.signature != XSDT_SIGNATURE)
{
@@ -66,12 +66,12 @@ struct acpi
return;
}
/* Map the entire XSDT. */
Hurl.map_range(acpi_xsdt_phys, xsdt.header.length, 0u);
hurl.map_range(acpi_xsdt_phys, xsdt.header.length, 0u);
size_t n_entries = (xsdt.header.length - xsdt.header.sizeof) / xsdt.tables[0].sizeof;
for (size_t i = 0u; i < n_entries; i++)
{
ulong address = xsdt.tables[i];
Hurl.map_range(address, 4u, 0u);
hurl.map_range(address, 4u, 0u);
uint signature = *cast(const(uint) *)address;
if (signature == APIC_SIGNATURE)
{
@@ -83,7 +83,7 @@ struct acpi
private static parse_apic_table(ulong address)
{
const(MadtHeader) * madt_header = cast(const(MadtHeader) *)address;
Hurl.map_range(address, madt_header.length, 0u);
hurl.map_range(address, madt_header.length, 0u);
apic_address = madt_header.local_apic_address;
klog.writefln("Found 32-bit APIC address: 0x%x", apic_address);
const(void) * madt_end = cast(const(void) *)(address + madt_header.length);