linux/arch/sh/include/asm
Oskar Schirmer c3dc5bec05 flat: fix data sections alignment
The flat loader uses an architecture's flat_stack_align() to align the
stack but assumes word-alignment is enough for the data sections.

However, on the Xtensa S6000 we have registers up to 128bit width
which can be used from userspace and therefor need userspace stack and
data-section alignment of at least this size.

This patch drops flat_stack_align() and uses the same alignment that
is required for slab caches, ARCH_SLAB_MINALIGN, or wordsize if it's
not defined by the architecture.

It also fixes m32r which was obviously kaput, aligning an
uninitialized stack entry instead of the stack pointer.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Oskar Schirmer <os@emlix.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Bryan Wu <cooloney@kernel.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Cc: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Johannes Weiner <jw@emlix.com>
Acked-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-05-29 08:40:02 -07:00
..
.gitignore
Kbuild byteorder: make swab.h include asm/swab.h like a regular header 2009-01-14 19:56:50 -08:00
adc.h
addrspace.h sh: Support fixed 32-bit PMB mappings from bootloader. 2009-03-10 15:49:54 +09:00
atomic-grb.h
atomic-irq.h sh: Use the atomic_t "counter" member 2009-01-29 11:57:10 +09:00
atomic-llsc.h
atomic.h
auxvec.h
bitops-grb.h
bitops-llsc.h sh: Relax inline assembly constraints 2009-01-29 11:57:09 +09:00
bitops-op32.h
bitops.h
bug.h
bugs.h
byteorder.h byteorder: make swab.h include asm/swab.h like a regular header 2009-01-14 19:56:50 -08:00
cache.h
cacheflush.h
checksum.h
checksum_32.h
checksum_64.h
clock.h sh: clkfwk: add clk_set_parent/clk_get_parent 2009-03-11 17:18:46 +09:00
cmpxchg-grb.h
cmpxchg-irq.h
cmpxchg-llsc.h sh: Relax inline assembly constraints 2009-01-29 11:57:09 +09:00
cpu-features.h sh: Support for extended ASIDs on PTEAEX-capable SH-X3 cores. 2009-03-17 17:49:49 +09:00
cputime.h
current.h
delay.h
device.h
div64.h
dma-mapping.h sh: Add support for DMA API debugging. 2009-04-09 10:36:54 -07:00
dma-sh.h sh: Revert CONFIG_NR_ONCHIP_DMA_CHANNELS to MAX_DMA_CHANNELS 2009-03-16 19:43:08 +09:00
dma.h sh: dma-sh updates for multi IRQ and new SH-4A CPUs. 2009-03-10 17:26:49 +09:00
dmabrg.h
elf.h
emergency-restart.h
entry-macros.S sh: prefetch early exception data on sh4/sh4a. 2009-02-27 16:41:17 +09:00
errno.h
fb.h
fcntl.h
fixmap.h
flat.h flat: fix data sections alignment 2009-05-29 08:40:02 -07:00
fpu.h
freq.h
ftrace.h
futex-irq.h
futex.h
gpio.h sh: use gpiolib 2009-01-27 14:49:10 +09:00
hardirq.h
hd64461.h sh: fix the HD64461 level-triggered interrupts handling 2009-03-20 18:57:48 +09:00
heartbeat.h
hugetlb.h
hw_irq.h
i2c-sh7760.h
ilsel.h
io.h sh: Support fixed 32-bit PMB mappings from bootloader. 2009-03-10 15:49:54 +09:00
io_generic.h
io_trapped.h
ioctl.h
ioctls.h
ipcbuf.h
irq.h
irq_regs.h
irqflags.h
irqflags_32.h
irqflags_64.h
kdebug.h
kexec.h
kgdb.h
kmap_types.h
kprobes.h SH: fix start_thread and user_stack_pointer macros 2009-01-29 15:41:15 +09:00
linkage.h
local.h
machvec.h
mc146818rtc.h
mman.h
mmu.h sh: Sanitize asm/mmu.h for assembly use. 2009-03-31 07:42:37 +09:00
mmu_context.h sh: Support for extended ASIDs on PTEAEX-capable SH-X3 cores. 2009-03-17 17:49:49 +09:00
mmu_context_32.h sh: Support for extended ASIDs on PTEAEX-capable SH-X3 cores. 2009-03-17 17:49:49 +09:00
mmu_context_64.h
mmzone.h
module.h
msgbuf.h
mutex-llsc.h sh: Fix up T-bit error handling in SH-4A mutex fastpath. 2009-01-29 11:56:03 +09:00
mutex.h
page.h sh: Support fixed 32-bit PMB mappings from bootloader. 2009-03-10 15:49:54 +09:00
param.h
parport.h
pci.h
percpu.h
pgalloc.h
pgtable.h
pgtable_32.h
pgtable_64.h
poll.h
posix_types.h
posix_types_32.h asm-sh/posix_types_{32,64}.h: drop __GLIBC__/__USE_ALL usage 2009-01-21 17:41:21 +09:00
posix_types_64.h asm-sh/posix_types_{32,64}.h: drop __GLIBC__/__USE_ALL usage 2009-01-21 17:41:21 +09:00
processor.h sh: Add support for SH7786 CPU subtype. 2009-03-03 15:40:25 +09:00
processor_32.h sh: Fix up DSP context save/restore. 2009-04-04 11:48:11 -04:00
processor_64.h SH: fix start_thread and user_stack_pointer macros 2009-01-29 15:41:15 +09:00
ptrace.h sh: Fix up unsigned syscall_nr in SH-5 pt_regs. 2009-04-27 17:05:38 +09:00
push-switch.h
resource.h
rtc.h
rwsem.h
scatterlist.h sh: Add support for DMA API debugging. 2009-04-09 10:36:54 -07:00
seccomp.h
sections.h sh: hibernation support 2009-03-10 12:55:40 +09:00
segment.h
sembuf.h
serial.h
setup.h
sfp-machine.h
sh7760fb.h
sh_bios.h
sh_eth.h
sh_keysc.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
sizes.h
smc37c93x.h
smp.h
socket.h net: new user space API for time stamping of incoming and outgoing packets 2009-02-15 22:43:33 -08:00
sockios.h
sparsemem.h
spi.h
spinlock.h Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
spinlock_types.h
stat.h
statfs.h
string.h
string_32.h
string_64.h
suspend.h sh: SuperH Mobile suspend support 2009-03-16 19:52:53 +09:00
swab.h
syscall.h
syscall_32.h sh: Fix up spurious syscall restarting. 2009-01-29 11:56:03 +09:00
syscall_64.h sh: Fix up spurious syscall restarting. 2009-01-29 11:56:03 +09:00
syscalls.h
syscalls_32.h [CVE-2009-0029] Remove __attribute__((weak)) from sys_pipe/sys_pipe2 2009-01-14 14:15:15 +01:00
syscalls_64.h
system.h sh: Wire up ARCH_HAS_DEFAULT_IDLE for cpuidle. 2009-04-02 13:08:31 +09:00
system_32.h sh: Fix up DSP context save/restore. 2009-04-04 11:48:11 -04:00
system_64.h
termbits.h
termios.h
thread_info.h
timer.h sh: rework clocksource and sched_clock 2009-01-29 16:44:17 +09:00
timex.h
tlb.h sh: Flush only the needed range when unmapping a VMA. 2009-03-17 21:19:49 +09:00
tlb_64.h
tlbflush.h
topology.h sh: Provide cpumask_of_pcibus() to fix NUMA build. 2009-04-07 17:11:15 -07:00
types.h
uaccess.h
uaccess_32.h
uaccess_64.h
ubc.h
ucontext.h
unaligned-sh4a.h
unaligned.h
unistd.h
unistd_32.h sh: wire up sys_preadv/sys_pwritev() syscalls. 2009-04-06 09:00:16 -07:00
unistd_64.h sh: wire up sys_preadv/sys_pwritev() syscalls. 2009-04-06 09:00:16 -07:00
user.h
vga.h
watchdog.h
xor.h