]> Zhao Yanbai Git Server - minix.git/commitdiff
arm:perform copy operation using same cacheability. 48/848/2
authorKees Jongenburger <kees.jongenburger@gmail.com>
Wed, 25 Sep 2013 08:25:02 +0000 (10:25 +0200)
committerKees Jongenburger <kees.jongenburger@gmail.com>
Thu, 26 Sep 2013 09:54:36 +0000 (11:54 +0200)
When copying data from cacheable memory also use cacheable
attributes when creating temporary mappings.

Change-Id: I0e8380293fb4edaafba49f6262983ad86a5350c5

kernel/arch/earm/memory.c

index fa6fb13446e7012e53874ba40870118b43afb65b..46ae87d8ca04d86c30896e47af8991985a06aca2 100644 (file)
@@ -100,10 +100,13 @@ static phys_bytes createpde(
                pdeval = pr->p_seg.p_ttbr_v[ARM_VM_PDE(linaddr)];
        } else {
                /* Requested address is physical. Make up the PDE entry. */
+               assert (linaddr >= PHYS_MEM_BEGIN && linaddr <= PHYS_MEM_END);
+
+               /* memory */
                pdeval = (linaddr & ARM_VM_SECTION_MASK)
                        | ARM_VM_SECTION
                        | ARM_VM_SECTION_DOMAIN
-                       | ARM_VM_SECTION_DEVICE
+                       | ARM_VM_SECTION_CACHED
                        | ARM_VM_SECTION_USER;
        }