Skip to content

Commit

Permalink
csky: Move HEAD_TEXT_SECTION out of __init_begin-end
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guo Ren committed Jul 23, 2022
1 parent f54af50 commit 01ab464
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arch/csky/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -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 = .;
Expand All @@ -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)
Expand Down

0 comments on commit 01ab464

Please sign in to comment.