mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
Kernel/ACPI: Don't ask from TypedMapping to map 2 pages if unnecessary
This commit is contained in:
parent
4499b0418c
commit
6282df3066
Notes:
sideshowbarker
2024-07-18 11:08:05 +09:00
Author: https://github.com/supercomputer7
Commit: 6282df3066
Pull-request: https://github.com/SerenityOS/serenity/pull/8241
Issue: https://github.com/SerenityOS/serenity/issues/6948
Issue: https://github.com/SerenityOS/serenity/issues/7445
Issue: https://github.com/SerenityOS/serenity/issues/8331
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/awesomekling
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