summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-03-26 09:02:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-03-31 10:00:35 +0200
commitb5e57a455df4ac27d52146a9d062cb9397dc4ece (patch)
tree4e061bfe3e796ffeec69fb771335868f61397352
parentdcc99365849cc5baa2d0169bc2da97dbe64c3903 (diff)
downloadbarebox-b5e57a455df4ac27d52146a9d062cb9397dc4ece.tar.gz
ARM64: attribute argument to create_sections() is 64bit
The attribute argument to create_sections() is 64bit, so pass in a 64bit variable. This is done in preparation for using some of the upper bits in the (UN)CACHED_MEM defines. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/cpu/mmu_64.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/cpu/mmu_64.c b/arch/arm/cpu/mmu_64.c
index 98cd4c7..8181658 100644
--- a/arch/arm/cpu/mmu_64.c
+++ b/arch/arm/cpu/mmu_64.c
@@ -158,19 +158,21 @@ static void create_sections(uint64_t virt, uint64_t phys, uint64_t size,
int arch_remap_range(void *_start, size_t size, unsigned flags)
{
+ unsigned long attrs;
+
switch (flags) {
case MAP_CACHED:
- flags = CACHED_MEM;
+ attrs = CACHED_MEM;
break;
case MAP_UNCACHED:
- flags = UNCACHED_MEM;
+ attrs = UNCACHED_MEM;
break;
default:
return -EINVAL;
}
create_sections((uint64_t)_start, (uint64_t)_start, (uint64_t)size,
- flags);
+ attrs);
return 0;
}