From 1fef8ada2961cf324a191c14b898cb21beebc84c Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sat, 5 Nov 2022 22:26:21 -0400 Subject: [PATCH] Define acpi structs as static --- src/hulk/acpi.d | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hulk/acpi.d b/src/hulk/acpi.d index dc97893..4951d90 100644 --- a/src/hulk/acpi.d +++ b/src/hulk/acpi.d @@ -12,7 +12,7 @@ struct acpi enum uint APIC_SIGNATURE = 0x43495041u; enum uint XSDT_SIGNATURE = 0x54445358u; - struct XsdtHeader + static struct XsdtHeader { uint signature; uint length; @@ -23,16 +23,16 @@ struct acpi uint oem_revision; uint creator_id; uint creator_revision; - }; + } - struct Xsdt + static struct Xsdt { XsdtHeader header; uint _pad; ulong[0] tables; } - struct MadtHeader + static struct MadtHeader { uint signature; uint length; @@ -47,7 +47,7 @@ struct acpi uint flags; } - struct MadtEntry + static struct MadtEntry { ubyte type; ubyte length;