alpha: replace hardcoded stack offsets with autogenerated ones
authorIvan Kokshaysky <ink@unseen.parts>
Tue, 4 Feb 2025 22:35:22 +0000 (23:35 +0100)
committerMatt Turner <mattst88@gmail.com>
Fri, 14 Feb 2025 19:03:40 +0000 (14:03 -0500)
commit77b823fa619f97d16409ca37ad4f7936e28c5f83
treeee04cfd3bfd530743790f0f7872e75c578e3523e
parent128c8f96eb8638c060cd3532dc394d046ce64fe1
alpha: replace hardcoded stack offsets with autogenerated ones

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>
arch/alpha/kernel/asm-offsets.c
arch/alpha/kernel/entry.S