Commit ed408db1 authored by Kefeng Wang's avatar Kefeng Wang Committed by Linus Torvalds

m68k: convert to setup_initial_init_mm()

Use setup_initial_init_mm() helper to simplify code.

Link: https://lkml.kernel.org/r/20210608083418.137226-8-wangkefeng.wang@huawei.comSigned-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
Acked-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9772bdef
...@@ -258,10 +258,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -258,10 +258,7 @@ void __init setup_arch(char **cmdline_p)
} }
} }
init_mm.start_code = PAGE_OFFSET; setup_initial_init_mm((void *)PAGE_OFFSET, _etext, _edata, _end);
init_mm.end_code = (unsigned long)_etext;
init_mm.end_data = (unsigned long)_edata;
init_mm.brk = (unsigned long)_end;
#if defined(CONFIG_BOOTPARAM) #if defined(CONFIG_BOOTPARAM)
strncpy(m68k_command_line, CONFIG_BOOTPARAM_STRING, CL_SIZE); strncpy(m68k_command_line, CONFIG_BOOTPARAM_STRING, CL_SIZE);
......
...@@ -87,10 +87,7 @@ void __init setup_arch(char **cmdline_p) ...@@ -87,10 +87,7 @@ void __init setup_arch(char **cmdline_p)
memory_start = PAGE_ALIGN(_ramstart); memory_start = PAGE_ALIGN(_ramstart);
memory_end = _ramend; memory_end = _ramend;
init_mm.start_code = (unsigned long) &_stext; setup_initial_init_mm(_stext, _etext, _edata, NULL);
init_mm.end_code = (unsigned long) &_etext;
init_mm.end_data = (unsigned long) &_edata;
init_mm.brk = (unsigned long) 0;
config_BSP(&command_line[0], sizeof(command_line)); config_BSP(&command_line[0], sizeof(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