diff mbox series

mips: Use the common RW_DATA macro in vmlinux.lds.S

Message ID 1604488243-21327-1-git-send-email-tangyouling@loongson.cn (mailing list archive)
State New
Headers show
Series mips: Use the common RW_DATA macro in vmlinux.lds.S | expand

Commit Message

Youling Tang Nov. 4, 2020, 11:10 a.m. UTC
Use the common RW_DATA rule for the linker script in an effort to
regularize the linker script.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
---
 arch/mips/kernel/vmlinux.lds.S | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)
diff mbox series

Patch

diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S
index 5e97e9d..e2fa07e 100644
--- a/arch/mips/kernel/vmlinux.lds.S
+++ b/arch/mips/kernel/vmlinux.lds.S
@@ -84,18 +84,9 @@  SECTIONS
 	_sdata = .;			/* Start of data section */
 	RO_DATA(4096)
 
-	/* writeable */
-	.data : {	/* Data */
-		. = . + DATAOFFSET;		/* for CONFIG_MAPPED_KERNEL */
-
-		INIT_TASK_DATA(THREAD_SIZE)
-		NOSAVE_DATA
-		CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
-		READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
-		DATA_DATA
-		CONSTRUCTORS
-	}
-	BUG_TABLE
+	. = . + DATAOFFSET;             /* for CONFIG_MAPPED_KERNEL */
+	RW_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT, PAGE_SIZE, THREAD_SIZE)
+
 	_gp = . + 0x8000;
 	.lit8 : {
 		*(.lit8)