summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-06-07 06:01:01 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-08 08:36:37 +0200
commit9c977e85423c006c1845eab7bf1e2fcf47125b62 (patch)
tree53fe06f799ab608f632c1ce8b15359666b05aaea /arch/arm/cpu
parent66eabf3f00bdb32597dd282aa7689fa01069111b (diff)
downloadbarebox-9c977e85423c006c1845eab7bf1e2fcf47125b62.tar.gz
barebox-9c977e85423c006c1845eab7bf1e2fcf47125b62.tar.xz
ARM: mmu64: Make use of create_table()
Make use of create_table() instead of calling xmemalign() and memset() explicitly. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/mmu_64.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/cpu/mmu_64.c b/arch/arm/cpu/mmu_64.c
index 80cf240d30..820d8cf75e 100644
--- a/arch/arm/cpu/mmu_64.c
+++ b/arch/arm/cpu/mmu_64.c
@@ -203,10 +203,7 @@ static int mmu_init(void)
if (get_cr() & CR_M)
mmu_disable();
- ttb = xmemalign(GRANULE_SIZE, GRANULE_SIZE);
-
- memset(ttb, 0, GRANULE_SIZE);
-
+ ttb = create_table();
el = current_el();
set_ttbr_tcr_mair(el, (uint64_t)ttb, calc_tcr(el), MEMORY_ATTRIBUTES);