summaryrefslogtreecommitdiffhomepage
path: root/Kernel/Builtins
diff options
context:
space:
mode:
authorAmlal <amlalelmahrouss@icloud.com>2024-06-06 10:27:55 +0000
committerAmlal <amlalelmahrouss@icloud.com>2024-06-06 10:27:55 +0000
commit4e75e05a20ddd0dbca982e8f3bc2ea8043ed3a3f (patch)
tree95409c0e32b644578b94a5c230417da684d79dc9 /Kernel/Builtins
parentf5081a8f9a8537ad5be5d639955cd1d0e68a9e1d (diff)
parent9994b8f3f88131f41be1061fb0947177e66dc7b0 (diff)
Merged in MHR-23 (pull request #14)
Draft: MHR-23
Diffstat (limited to 'Kernel/Builtins')
-rw-r--r--Kernel/Builtins/ACPI/ACPI.hxx23
1 files changed, 19 insertions, 4 deletions
diff --git a/Kernel/Builtins/ACPI/ACPI.hxx b/Kernel/Builtins/ACPI/ACPI.hxx
index 13ea6ecc..430a39f4 100644
--- a/Kernel/Builtins/ACPI/ACPI.hxx
+++ b/Kernel/Builtins/ACPI/ACPI.hxx
@@ -15,7 +15,7 @@
namespace NewOS
{
- class SDT
+ class PACKED SDT
{
public:
Char Signature[4];
@@ -29,7 +29,7 @@ namespace NewOS
UInt32 CreatorRevision;
};
- class RSDP : public SDT
+ class PACKED RSDP : public SDT
{
public:
UInt32 RsdtAddress;
@@ -38,7 +38,7 @@ namespace NewOS
UInt8 Reserved0[3];
};
- class ConfigHeader
+ class PACKED ConfigHeader
{
public:
UInt64 BaseAddress;
@@ -59,7 +59,7 @@ namespace NewOS
Invalid = 0xFF,
};
- class Address
+ class PACKED Address
{
public:
AddressSpace AddressSpaceId;
@@ -68,6 +68,21 @@ namespace NewOS
UInt8 Reserved;
UIntPtr Address;
};
+
+ class PACKED RSDT
+ {
+ public:
+ Char Signature[4];
+ UInt32 Length;
+ UInt8 Revision;
+ Char Checksum;
+ Char OemId[6];
+ Char OemTableId[8];
+ UInt32 OemRev;
+ UInt32 CreatorID;
+ UInt32 CreatorRevision;
+ UInt32 AddressArr[];
+ };
} // namespace NewOS
#endif // !__ACPI__