MIPS: Align .data.cacheline_aligned based on CONFIG_MIPS_L1_CACHE_SHIFT
authorDavid Daney <ddaney@caviumnetworks.com>
Mon, 13 Oct 2008 23:36:13 +0000 (16:36 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 15 Oct 2008 11:46:50 +0000 (12:46 +0100)
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Tomaso Paoletti <tpaoletti@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vmlinux.lds.S

index afb119f..58738c8 100644 (file)
@@ -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)
        }