]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
[IA64] align signal-frame even when not using alternate signal-stack
authorDavid Mosberger-Tang <davidm@mostang.com>
Thu, 3 Nov 2005 06:40:19 +0000 (22:40 -0800)
committerTony Luck <tony.luck@intel.com>
Tue, 8 Nov 2005 17:58:06 +0000 (09:58 -0800)
commitcf20d1eafb648bf395b153cbcd0cde40f88c220a
treeb8ffb8bd95fb62738f891ace618b3727bd8dbeca
parentf093182d313edde9b1f86dbdaf40ba4da2dbd0e7
[IA64] align signal-frame even when not using alternate signal-stack

At the moment, attempting to invoke a signal-handler on the normal
stack is guaranteed to fail if the stack-pointer happens not to be
16-byte aligned.  This is because the signal-trampoline will attempt
to store fp-regs with stf.spill instructions, which will trap for
misaligned addresses.  This isn't terribly useful behavior.  It's
better to just always align the signal frame to the next lower 16-byte
boundary.

Signed-off-by: David Mosberger-Tang <David.Mosberger@acm.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/signal.c