Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: Align .data.cacheline_aligned based on MIPS_L1_CACHE_SHIFT
@ 2008-10-13 23:36 David Daney
  2008-10-14  9:07 ` Ralf Baechle
  0 siblings, 1 reply; 4+ messages in thread
From: David Daney @ 2008-10-13 23:36 UTC (permalink / raw)
  To: linux-mips

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

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Tomaso Paoletti <tpaoletti@caviumnetworks.com>
---
 arch/mips/kernel/vmlinux.lds.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S
index afb119f..58738c8 100644
--- a/arch/mips/kernel/vmlinux.lds.S
+++ b/arch/mips/kernel/vmlinux.lds.S
@@ -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)
 	}

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-14 16:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-13 23:36 [PATCH] MIPS: Align .data.cacheline_aligned based on MIPS_L1_CACHE_SHIFT David Daney
2008-10-14  9:07 ` Ralf Baechle
2008-10-14 16:20   ` David Daney
2008-10-14 16:31     ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox