Skip to contentSkip to conversation

csky: Move HEAD_TEXT_SECTION out of __init_begin-end

PATCH New [email protected] 1 participant 1 message Jul 5, 2022

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 csky: Move HEAD_TEXT_SECTION out of __init_begin-end

From: Guo Ren <[email protected]>

Prevent HEAD_TEXT_SECTION back into the buddy system.

---
 arch/csky/kernel/vmlinux.lds.S | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
arch/csky/kernel/vmlinux.lds.S +6 -6
index 163a8cd8b9a6..68c980d08482 100644
@@ -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)
Signature · 1 line
2.36.1