core: hand out RAM region as IOMEM to ACIPCA

The special region seems not to be declared as reserved nor ACPI
related. However, ACPICA depends on this physical range.

Issue #4643
This commit is contained in:
Alexander Boettcher 2023-09-06 15:05:35 +02:00 committed by Christian Helmuth
parent b50a88a95d
commit 70737c034b

View File

@ -625,6 +625,21 @@ Core::Platform::Platform()
}
}
/*
* ACPI quirk for 12th Gen Framework laptop and Thinkpad X1 Nano Gen2
*
* Although this RAM page is not marked as reserved, it apparently plays a
* special role because ACPICA explicitly requests this physical range.
*/
{
#ifdef __x86_64__
addr_t const start = 0x1'0bf0'0000, size = 0x1000;
_io_mem_alloc.add_range(start, size);
ram_alloc().remove_range(start, size);
#endif
}
/*
* From now on, it is save to use the core allocators...
*/