提交 f8bec75a 编写于 作者: C Catalin Marinas 提交者: Ralf Baechle

MIPS: Rename .data..mostly and properly handle it in linker script

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 866d7f56
...@@ -17,6 +17,6 @@ ...@@ -17,6 +17,6 @@
#define SMP_CACHE_SHIFT L1_CACHE_SHIFT #define SMP_CACHE_SHIFT L1_CACHE_SHIFT
#define SMP_CACHE_BYTES L1_CACHE_BYTES #define SMP_CACHE_BYTES L1_CACHE_BYTES
#define __read_mostly __attribute__((__section__(".data.read_mostly"))) #define __read_mostly __attribute__((__section__(".data..read_mostly")))
#endif /* _ASM_CACHE_H */ #endif /* _ASM_CACHE_H */
...@@ -74,6 +74,7 @@ SECTIONS ...@@ -74,6 +74,7 @@ SECTIONS
INIT_TASK_DATA(PAGE_SIZE) INIT_TASK_DATA(PAGE_SIZE)
NOSAVE_DATA NOSAVE_DATA
CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT) CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT)
DATA_DATA DATA_DATA
CONSTRUCTORS CONSTRUCTORS
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册