diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2021-06-25 14:37:54 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2021-07-09 12:26:05 +1000 |
commit | 7f26a4507e35ed2df48c7b5665379689abc5c5cd (patch) | |
tree | 1c24bfcb833c6a5885e35e3ea1d261ee738cc9fe | |
parent | 308f6181d1630b032cbf59da67d636957224c40b (diff) | |
download | linux-7f26a4507e35ed2df48c7b5665379689abc5c5cd.tar.gz linux-7f26a4507e35ed2df48c7b5665379689abc5c5cd.tar.xz |
sh: convert to setup_initial_init_mm()
Use setup_initial_init_mm() helper to simplify code.
Link: https://lkml.kernel.org/r/20210608083418.137226-15-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | arch/sh/kernel/setup.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index 4144be650d41..1fcb6659822a 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c @@ -294,10 +294,7 @@ void __init setup_arch(char **cmdline_p) if (!MOUNT_ROOT_RDONLY) root_mountflags &= ~MS_RDONLY; - init_mm.start_code = (unsigned long) _text; - init_mm.end_code = (unsigned long) _etext; - init_mm.end_data = (unsigned long) _edata; - init_mm.brk = (unsigned long) _end; + setup_initial_init_mm(_text, _etext, _edata, _end); code_resource.start = virt_to_phys(_text); code_resource.end = virt_to_phys(_etext)-1; |