]> 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>
Thu, 13 Mar 2025 11:50:45 +0000 (12:50 +0100)
commitc6ddb38485993e599c6ee038cd355faec5e15c34
treeaf5942952da9110987c820a117b59d095d9fc9d5
parent5fb8cda2fceaf2656ffdf2c41854817319e6db23
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