[lkml]   [2016]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH v11 02/10] arm64: override generic version of early_init_dt_add_memory_arch()
From: Ard Biesheuvel <>

Override the __weak early_init_dt_add_memory_arch() with our own
version. We need this in a subsequent patch to make the handling of
the memory nodes conditional on whether we are booting via UEFI or
not. Note that for now, all that our version does is invoke the generic

Signed-off-by: Ard Biesheuvel <>
Signed-off-by: Robert Richter <>
Signed-off-by: David Daney <>
arch/arm64/mm/init.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c
index f3b061e..208c1d3 100644
--- a/arch/arm64/mm/init.c
+++ b/arch/arm64/mm/init.c
@@ -380,3 +380,8 @@ static int __init keepinitrd_setup(char *__unused)

__setup("keepinitrd", keepinitrd_setup);
+void __init early_init_dt_add_memory_arch(u64 base, u64 size)
+ early_init_dt_add_memory(base, size);
 \ /
  Last update: 2016-02-20 02:41    [W:0.139 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site