[kernel] Make sure to virtualize ACPI table pointers

Probably due to old UEFI page tables going away, some systems failed to
load ACPI tables at their physical location. Make sure to translate them
to kernel offset-mapped addresses.
This commit is contained in:
Justin C. Miller
2021-02-04 19:47:17 -08:00
parent 4f8e35e409
commit b3f59acf7e
3 changed files with 33 additions and 22 deletions

View File

@@ -23,7 +23,7 @@ struct acpi_table_header
} __attribute__ ((packed));
#define TABLE_HEADER(signature) \
static const uint32_t type_id = kutil::byteswap(signature); \
static constexpr uint32_t type_id = kutil::byteswap(signature); \
acpi_table_header header;