mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-02-25 18:55:23 -06:00
Don't search for the RDSP at bootparams.acpi_rsdp_addr.
This field is only used internally by the Linux kernel, so will always be zero when bootparams is passed to us by a bootloader.
This commit is contained in:
parent
da7829d4c3
commit
9fca23105a
@ -492,13 +492,7 @@ static bool find_cpus_in_rsdp(void)
|
|||||||
|
|
||||||
// Search for the RSDP
|
// Search for the RSDP
|
||||||
rsdp_t *rp = NULL;
|
rsdp_t *rp = NULL;
|
||||||
uintptr_t acpi_rsdp_addr = map_region(boot_params->acpi_rsdp_addr, 0x8, true);
|
if (efi_info->loader_signature == EFI32_LOADER_SIGNATURE) {
|
||||||
if (acpi_rsdp_addr != 0) {
|
|
||||||
// Validate it
|
|
||||||
rp = scan_for_rsdp(acpi_rsdp_addr, 0x8);
|
|
||||||
if (rp) rsdp_source = "boot parameters";
|
|
||||||
}
|
|
||||||
if (rp == NULL && efi_info->loader_signature == EFI32_LOADER_SIGNATURE) {
|
|
||||||
uintptr_t system_table_addr = map_region(efi_info->sys_tab, sizeof(efi32_system_table_t), true);
|
uintptr_t system_table_addr = map_region(efi_info->sys_tab, sizeof(efi32_system_table_t), true);
|
||||||
if (system_table_addr != 0) {
|
if (system_table_addr != 0) {
|
||||||
rp = find_rsdp_in_efi32_system_table((efi32_system_table_t *)system_table_addr);
|
rp = find_rsdp_in_efi32_system_table((efi32_system_table_t *)system_table_addr);
|
||||||
|
Loading…
Reference in New Issue
Block a user