Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: Update the alignment when 4K stacks are used.

Use the newly added .bss.page_aligned section for aligning the stacks
rather than THREAD_SIZE.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Robert P. J. Day and committed by
Paul Mundt
bdf4fa53 e181127a

+2 -6
+2 -6
arch/sh/kernel/irq.c
··· 158 158 } 159 159 160 160 #ifdef CONFIG_4KSTACKS 161 - /* 162 - * These should really be __section__(".bss.page_aligned") as well, but 163 - * gcc's 3.0 and earlier don't handle that correctly. 164 - */ 165 161 static char softirq_stack[NR_CPUS * THREAD_SIZE] 166 - __attribute__((__aligned__(THREAD_SIZE))); 162 + __attribute__((__section__(".bss.page_aligned"))); 167 163 168 164 static char hardirq_stack[NR_CPUS * THREAD_SIZE] 169 - __attribute__((__aligned__(THREAD_SIZE))); 165 + __attribute__((__section__(".bss.page_aligned"))); 170 166 171 167 /* 172 168 * allocate per-cpu stacks for hardirq and for softirq processing