Skip to content

Commit 01ab464

Browse files
committed
csky: Move HEAD_TEXT_SECTION out of __init_begin-end
Prevent HEAD_TEXT_SECTION back into the buddy system. Signed-off-by: Guo Ren <[email protected]> Signed-off-by: Guo Ren <[email protected]>
1 parent f54af50 commit 01ab464

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arch/csky/kernel/vmlinux.lds.S

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,8 @@ SECTIONS
2323
. = PAGE_OFFSET + PHYS_OFFSET_OFFSET;
2424

2525
_start = .;
26-
__init_begin = .;
2726
HEAD_TEXT_SECTION
28-
INIT_TEXT_SECTION(PAGE_SIZE)
29-
INIT_DATA_SECTION(PAGE_SIZE)
30-
PERCPU_SECTION(L1_CACHE_BYTES)
3127
. = ALIGN(PAGE_SIZE);
32-
__init_end = .;
3328

3429
.text : AT(ADDR(.text) - LOAD_OFFSET) {
3530
_text = .;
@@ -49,7 +44,12 @@ SECTIONS
4944

5045
/* __init_begin __init_end must be page aligned for free_initmem */
5146
. = ALIGN(PAGE_SIZE);
52-
47+
__init_begin = .;
48+
INIT_TEXT_SECTION(PAGE_SIZE)
49+
INIT_DATA_SECTION(PAGE_SIZE)
50+
PERCPU_SECTION(L1_CACHE_BYTES)
51+
. = ALIGN(PAGE_SIZE);
52+
__init_end = .;
5353

5454
_sdata = .;
5555
RO_DATA(PAGE_SIZE)

0 commit comments

Comments
 (0)