summaryrefslogtreecommitdiffstats
path: root/arch/csky
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2022-07-05 14:16:21 +0800
committerGuo Ren <guoren@linux.alibaba.com>2022-07-22 21:36:14 -0400
commit01ab4649ef5a377074d2ad4bf2ba6d2270d2807b (patch)
treeb3399abca55017e7a5e1fac8a53610236cf138db /arch/csky
parentf54af50d7b6f9ddb54df422156864cfc59e32f8c (diff)
downloadlinux-01ab4649ef5a377074d2ad4bf2ba6d2270d2807b.tar.bz2
csky: Move HEAD_TEXT_SECTION out of __init_begin-end
Prevent HEAD_TEXT_SECTION back into the buddy system. Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@kernel.org>
Diffstat (limited to 'arch/csky')
-rw-r--r--arch/csky/kernel/vmlinux.lds.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/csky/kernel/vmlinux.lds.S b/arch/csky/kernel/vmlinux.lds.S
index 163a8cd8b9a6..68c980d08482 100644
--- a/arch/csky/kernel/vmlinux.lds.S
+++ b/arch/csky/kernel/vmlinux.lds.S
@@ -23,13 +23,8 @@ SECTIONS
. = PAGE_OFFSET + PHYS_OFFSET_OFFSET;
_start = .;
- __init_begin = .;
HEAD_TEXT_SECTION
- INIT_TEXT_SECTION(PAGE_SIZE)
- INIT_DATA_SECTION(PAGE_SIZE)
- PERCPU_SECTION(L1_CACHE_BYTES)
. = ALIGN(PAGE_SIZE);
- __init_end = .;
.text : AT(ADDR(.text) - LOAD_OFFSET) {
_text = .;
@@ -49,7 +44,12 @@ SECTIONS
/* __init_begin __init_end must be page aligned for free_initmem */
. = ALIGN(PAGE_SIZE);
-
+ __init_begin = .;
+ INIT_TEXT_SECTION(PAGE_SIZE)
+ INIT_DATA_SECTION(PAGE_SIZE)
+ PERCPU_SECTION(L1_CACHE_BYTES)
+ . = ALIGN(PAGE_SIZE);
+ __init_end = .;
_sdata = .;
RO_DATA(PAGE_SIZE)