summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2021-06-25 14:37:52 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2021-07-09 12:26:03 +1000
commita1daf0330e03da78ace91354982e85e3626f38cd (patch)
treef34c352f7672284ff88e611e6c0e8c350c8ca8b7
parent5425324bb9b7f8b5fb0001142d40b0c349200239 (diff)
downloadlinux-a1daf0330e03da78ace91354982e85e3626f38cd.tar.gz
linux-a1daf0330e03da78ace91354982e85e3626f38cd.tar.xz
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 <wangkefeng.wang@huawei.com> Cc: Nick Hu <nickhu@andestech.com> Cc: Greentime Hu <green.hu@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--arch/nds32/kernel/setup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/setup.c
index af82e996f412..41725eaf8bac 100644
--- a/arch/nds32/kernel/setup.c
+++ b/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();