Commit 4154267a authored by Kefeng Wang's avatar Kefeng Wang Committed by Linus Torvalds

nios2: convert to setup_initial_init_mm()

Use setup_initial_init_mm() helper to simplify code.

Link: https://lkml.kernel.org/r/20210608083418.137226-10-wangkefeng.wang@huawei.comSigned-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent de26fb41
...@@ -156,10 +156,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -156,10 +156,7 @@ void __init setup_arch(char **cmdline_p)
memory_start = memblock_start_of_DRAM(); memory_start = memblock_start_of_DRAM();
memory_end = memblock_end_of_DRAM(); memory_end = memblock_end_of_DRAM();
init_mm.start_code = (unsigned long) _stext; setup_initial_init_mm(_stext, _etext, _edata, _end);
init_mm.end_code = (unsigned long) _etext;
init_mm.end_data = (unsigned long) _edata;
init_mm.brk = (unsigned long) _end;
init_task.thread.kregs = &fake_regs; init_task.thread.kregs = &fake_regs;
/* Keep a copy of command line */ /* Keep a copy of command line */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment