MdePkg/BaseIoLibIntrinsicArmVirt ARM: avoid double word loads and stores
[mirror_edk2.git] / MdePkg / Library / BaseIoLibIntrinsic / Arm / ArmVirtMmio.S
index 3ad22bd..0d802d6 100644 (file)
@@ -125,7 +125,8 @@ ASM_PFX(MmioWrite32Internal):
 //  @return The value read.\r
 //\r
 ASM_PFX(MmioRead64Internal):\r
-  ldrd    r0, r1, [r0]\r
+  ldr     r1, [r0, #4]\r
+  ldr     r0, [r0]\r
   dmb\r
   bx      lr\r
 \r
@@ -141,5 +142,6 @@ ASM_PFX(MmioRead64Internal):
 //\r
 ASM_PFX(MmioWrite64Internal):\r
   dmb     st\r
-  strd    r2, r3, [r0]\r
+  str     r2, [r0]\r
+  str     r3, [r0, #4]\r
   bx      lr\r