]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/ArmLib/AArch64/AArch64Support.S
ArmPkg/ArmLib: Fixed TBLs invalidation in EL1
[mirror_edk2.git] / ArmPkg / Library / ArmLib / AArch64 / AArch64Support.S
index c45e33d6b92a2a8742b7517c73ab004e48503d7e..ad9fdda5253d9cd49012436033a3b8dfd908490d 100644 (file)
@@ -123,7 +123,7 @@ ASM_PFX(ArmEnableMmu):
 3: mrs     x0, sctlr_el3       // Read System control register EL3\r
 4: orr     x0, x0, #CTRL_M_BIT // Set MMU enable bit\r
    EL1_OR_EL2_OR_EL3(x1)\r
-1: tlbi    alle1\r
+1: tlbi    vmalle1\r
    isb\r
    msr     sctlr_el1, x0       // Write back\r
    b       4f\r
@@ -149,7 +149,7 @@ ASM_PFX(ArmDisableMmu):
 4: bic     x0, x0, #CTRL_M_BIT  // Clear MMU enable bit\r
    EL1_OR_EL2_OR_EL3(x1)\r
 1: msr     sctlr_el1, x0        // Write back\r
-   tlbi    alle1\r
+   tlbi    vmalle1\r
    b       4f\r
 2: msr     sctlr_el2, x0        // Write back\r
    tlbi    alle2\r
@@ -441,7 +441,7 @@ ASM_PFX(ArmCallWFI):
 \r
 ASM_PFX(ArmInvalidateInstructionAndDataTlb):\r
    EL1_OR_EL2_OR_EL3(x0)\r
-1: tlbi  alle1\r
+1: tlbi  vmalle1\r
    b     4f\r
 2: tlbi  alle2\r
    b     4f\r