1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:58:12 +00:00

Kernel: ACPI code doesn't rely on identity mapping anymore

The problem was mostly in the initialization code, since in that stage
the parser assumed that there is an identity mapping in the first 1MB of
the address space. Now during initialization the parser will create the
correct mappings to locate the required data.
This commit is contained in:
Liav A 2020-01-21 04:37:30 +02:00 committed by Andreas Kling
parent 325022cbd7
commit 60c32f44dd
2 changed files with 45 additions and 24 deletions

View file

@ -52,6 +52,8 @@ private:
size_t get_table_size(ACPI_RAW::SDTHeader&);
u8 get_table_revision(ACPI_RAW::SDTHeader&);
void init_fadt();
ACPI_RAW::RSDPDescriptor20* search_rsdp_in_ebda(u16 ebda_segment);
ACPI_RAW::RSDPDescriptor20* search_rsdp_in_bios_area();
ACPI_RAW::RSDPDescriptor20* search_rsdp();
// Early pointers that are needed really for initializtion only...