From: Kees Jongenburger Date: Wed, 25 Sep 2013 08:25:02 +0000 (+0200) Subject: arm:perform copy operation using same cacheability. X-Git-Tag: v3.3.0~776 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=2830a5af5c11b366adad8f9d7f872d68c44dd947;p=minix.git arm:perform copy operation using same cacheability. When copying data from cacheable memory also use cacheable attributes when creating temporary mappings. Change-Id: I0e8380293fb4edaafba49f6262983ad86a5350c5 --- diff --git a/kernel/arch/earm/memory.c b/kernel/arch/earm/memory.c index fa6fb1344..46ae87d8c 100644 --- a/kernel/arch/earm/memory.c +++ b/kernel/arch/earm/memory.c @@ -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; }