[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCHv5 16/23] plat/kvm: Invalidate D-Cache that may have been modified for Arm64



From: Wei Chen <wei.chen@xxxxxxx>

DTB, TEXT and RODATA would not be modified while booting, so we just
need to invalidate and clean the area that may have been modified:
DATA, BSS, PAGETABLE and BOOTSTACK.

Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
Signed-off-by: Jia He <justin.he@xxxxxxx>
Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
---
 plat/kvm/arm/pagetable64.S | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/plat/kvm/arm/pagetable64.S b/plat/kvm/arm/pagetable64.S
index d4abaff..cf30584 100644
--- a/plat/kvm/arm/pagetable64.S
+++ b/plat/kvm/arm/pagetable64.S
@@ -239,10 +239,10 @@ ENTRY(start_mmu)
 
         /*
         * Invalidate the D-Cache to avoid using invalid data that existed
-        * in D-Cache. Invalidate ranges: DTB, TEXT, DATA, BSS, PAGETABLE
-        * and BOOTSTACK.
+        * in D-Cache. Invalidate ranges that may have been modified:
+        * DATA, BSS, PAGETABLE and BOOTSTACK.
         */
-       ldr x0, =_dtb
+       ldr x0, =_data
        ldr x1, =_end
        add x1, x1, #PAGE_TABLE_SIZE
        add x1, x1, #__STACK_SIZE
-- 
2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.