Skip to contentSkip to conversation

MIPS: Align .data.cacheline_aligned based on MIPS_L1_CACHE_SHIFT

PATCH Applied David Daney 2 participants 4 messages Oct 13, 2008 – Oct 14, 2008 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Align .data.cacheline_aligned based on MIPS_L1_CACHE_SHIFT

Align .data.cacheline_aligned based on the MIPS_L1_CACHE_SHIFT configuration variable.

---
arch/mips/kernel/vmlinux.lds.S | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/kernel/vmlinux.lds.S +0 -0
index afb119f..58738c8 100644
@@ -104,7 +104,7 @@ SECTIONS
	. = ALIGN(_PAGE_SIZE);
	__nosave_end = .;

- . = ALIGN(32);

+	. = ALIGN(1 << CONFIG_MIPS_L1_CACHE_SHIFT);
	.data.cacheline_aligned : {
		*(.data.cacheline_aligned)
	}