Thread (71 messages) 71 messages, 8 authors, 2021-07-18
STALE1801d

[patch 23/54] nds32: convert to setup_initial_init_mm()

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2021-07-08 01:08:46
Also in: mm-commits

From: Kefeng Wang <redacted>
Subject: nds32: convert to setup_initial_init_mm()

Use setup_initial_init_mm() helper to simplify code.

Link: https://lkml.kernel.org/r/20210608083418.137226-9-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <redacted>
Cc: Nick Hu <redacted>
Cc: Greentime Hu <redacted>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 arch/nds32/kernel/setup.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
--- a/arch/nds32/kernel/setup.c~nds32-convert-to-setup_initial_init_mm
+++ a/arch/nds32/kernel/setup.c
@@ -294,10 +294,7 @@ void __init setup_arch(char **cmdline_p)
 
 	setup_cpuinfo();
 
-	init_mm.start_code = (unsigned long)&_stext;
-	init_mm.end_code = (unsigned long)&_etext;
-	init_mm.end_data = (unsigned long)&_edata;
-	init_mm.brk = (unsigned long)&_end;
+	setup_initial_init_mm(_stext, _etext, _edata, _end);
 
 	/* setup bootmem allocator */
 	setup_memory();
_
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help