]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm64/kernel/setup.c
Merge remote-tracking branch 'tip/auto-latest'
[karo-tx-linux.git] / arch / arm64 / kernel / setup.c
index 450987d99b9b9e497411a79f34781a3cb242df6e..28c0f90c9c10136aa560cde98e873c9ae53a7ca1 100644 (file)
@@ -62,6 +62,7 @@
 #include <asm/memblock.h>
 #include <asm/efi.h>
 #include <asm/xen/hypervisor.h>
+#include <asm/mmu_context.h>
 
 phys_addr_t __fdt_pointer __initdata;
 
@@ -313,6 +314,12 @@ void __init setup_arch(char **cmdline_p)
         */
        local_async_enable();
 
+       /*
+        * TTBR0 is only used for the identity mapping at this stage. Make it
+        * point to zero page to avoid speculatively fetching new entries.
+        */
+       cpu_uninstall_idmap();
+
        efi_init();
        arm64_memblock_init();