UEFI: leave runtime memory identity mapped.

* We don't have kernel/userspace access to UEFI at this point
  either, and with some firmware, if we don't keep the
  runtime memory identity mapped, then the loader dies. This
  will fix booting on such machines, and shouldn't have any
  impact on already working machines.
This commit is contained in:
Jessica Hamilton 2017-01-08 19:33:08 +00:00
parent d7f781302d
commit 3d870da3cb

View File

@ -183,7 +183,7 @@ mmu_post_efi_setup(UINTN memory_map_size, EFI_MEMORY_DESCRIPTOR *memory_map, UIN
break;
case EfiRuntimeServicesCode:
case EfiRuntimeServicesData:
entry->VirtualStart = entry->PhysicalStart + 0xFFFFFF0000000000ull;
entry->VirtualStart = entry->PhysicalStart;
break;
}
}