]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/platform/efi/efi.c
Merge remote-tracking branch 'origin/x86/mm' into x86/mm2
[karo-tx-linux.git] / arch / x86 / platform / efi / efi.c
index 36e53f0a9ce3e101774f677b8bc2cd03c21e720b..1743c1c924119bb1d8d4d8824ad5dada74dc166e 100644 (file)
@@ -410,8 +410,8 @@ void __init efi_reserve_boot_services(void)
                 * - Not within any part of the kernel
                 * - Not the bios reserved area
                */
-               if ((start+size >= virt_to_phys(_text)
-                               && start <= virt_to_phys(_end)) ||
+               if ((start+size >= __pa_symbol(_text)
+                               && start <= __pa_symbol(_end)) ||
                        !e820_all_mapped(start, start+size, E820_RAM) ||
                        memblock_is_region_reserved(start, size)) {
                        /* Could not reserve, skip it */