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:
parent
4499b0418c
commit
6282df3066
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue