create_sections() takes size in bytes, not in megabytes, so drop the _m prefix from the size argument. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- arch/arm/cpu/mmu_64.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/mmu_64.c b/arch/arm/cpu/mmu_64.c index eb54097514..6e22da9a26 100644 --- a/arch/arm/cpu/mmu_64.c +++ b/arch/arm/cpu/mmu_64.c @@ -196,10 +196,9 @@ static void map_region(uint64_t virt, uint64_t phys, uint64_t size, uint64_t att } } -static void create_sections(uint64_t virt, uint64_t phys, uint64_t size_m, uint64_t flags) +static void create_sections(uint64_t virt, uint64_t phys, uint64_t size, uint64_t flags) { - - map_region(virt, phys, size_m, flags); + map_region(virt, phys, size, flags); tlb_invalidate(); } -- 2.16.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox