Skip to content

Commit

Permalink
sh: Update the alignment when 4K stacks are used.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robert P. J. Day authored and Paul Mundt committed Jul 12, 2007
1 parent e181127 commit bdf4fa5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions arch/sh/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,11 @@ asmlinkage int do_IRQ(unsigned int irq, struct pt_regs *regs)
}

#ifdef CONFIG_4KSTACKS
/*
* These should really be __section__(".bss.page_aligned") as well, but
* gcc's 3.0 and earlier don't handle that correctly.
*/
static char softirq_stack[NR_CPUS * THREAD_SIZE]
__attribute__((__aligned__(THREAD_SIZE)));
__attribute__((__section__(".bss.page_aligned")));

static char hardirq_stack[NR_CPUS * THREAD_SIZE]
__attribute__((__aligned__(THREAD_SIZE)));
__attribute__((__section__(".bss.page_aligned")));

/*
* allocate per-cpu stacks for hardirq and for softirq processing
Expand Down

0 comments on commit bdf4fa5

Please sign in to comment.