[PATCH v2 20/28] ARM: mmu: Use xmemalign in mmu_init()
Andrey Smirnov
andrew.smirnov at gmail.com
Wed May 16 13:00:28 PDT 2018
We don't handle OOM case in that code, so using xmemalign seems like a
better option.
Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
arch/arm/cpu/mmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c
index 42341a7a3..5e8d439bf 100644
--- a/arch/arm/cpu/mmu.c
+++ b/arch/arm/cpu/mmu.c
@@ -450,7 +450,7 @@ static int mmu_init(void)
pr_crit("Critical Error: Can't request SDRAM region for ttb at %p\n",
ttb);
} else {
- ttb = memalign(0x10000, 0x4000);
+ ttb = xmemalign(0x10000, 0x4000);
}
pr_debug("ttb: 0x%p\n", ttb);
--
2.17.0
More information about the barebox
mailing list