arm64: fix KASLR boot-time I-cache maintenance
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / kernel / head.S
index 319f896c6e744a3ee47f4fede17a75bee4d7d9e2..a88a15447c3bb382970a940b39fb9d6e0e6b9529 100644 (file)
@@ -740,8 +740,9 @@ __enable_mmu:
 
        msr     sctlr_el1, x19                  // re-enable the MMU
        isb
-       ic      ialluis                         // flush instructions fetched
-       isb                                     // via old mapping
+       ic      iallu                           // flush instructions fetched
+       dsb     nsh                             // via old mapping
+       isb
        add     x27, x27, x23                   // relocated __mmap_switched
 #endif
        br      x27