]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
alpha: replace hardcoded stack offsets with autogenerated ones
authorIvan Kokshaysky <ink@unseen.parts>
Tue, 4 Feb 2025 22:35:22 +0000 (23:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:50:10 +0000 (13:50 +0100)
commit731fd4b06c091ae63dcd75a4b889a08ff40c4cd8
tree4cdc672b87fba271e83a2522c2bba3574f036d17
parentc986a5fb15eda49a45425efa2bc57b3b73841545
alpha: replace hardcoded stack offsets with autogenerated ones

commit 77b823fa619f97d16409ca37ad4f7936e28c5f83 upstream.

This allows the assembly in entry.S to automatically keep in sync with
changes in the stack layout (struct pt_regs and struct switch_stack).

Cc: stable@vger.kernel.org
Tested-by: Maciej W. Rozycki <macro@orcam.me.uk>
Tested-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Ivan Kokshaysky <ink@unseen.parts>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/alpha/kernel/asm-offsets.c
arch/alpha/kernel/entry.S