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

Kernel/ACPI: Don't ask from TypedMapping to map 2 pages if unnecessary

This commit is contained in:
Liav A 2021-07-02 08:39:41 +03:00 committed by Andreas Kling
parent 4499b0418c
commit 6282df3066

View file

@ -146,8 +146,7 @@ UNMAP_AFTER_INIT void Parser::init_fadt()
m_fadt = find_table("FACP");
VERIFY(!m_fadt.is_null());
// FIXME: We need at least two pages for mapping, since we can be on the "edge" of one page...
auto sdt = map_typed<const volatile Structures::FADT>(m_fadt, PAGE_SIZE * 2);
auto sdt = map_typed<const volatile Structures::FADT>(m_fadt);
dbgln_if(ACPI_DEBUG, "ACPI: FADT @ V{}, {}", &sdt, m_fadt);