diff options
author | Kees Cook <[email protected]> | 2022-02-23 22:05:58 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2023-02-14 12:36:22 -0500 |
commit | bd1912de892ce30e1e2242e67716d25188fbfa44 (patch) | |
tree | fea997c7b98516073ba748ac0bbaccb39440d047 /arch/alpha/lib/stacktrace.c | |
parent | d7cf43edebe577c58c7858cf61b03d618d4336cf (diff) |
alpha: Implement "current_stack_pointer"
To follow the existing per-arch conventions replace open-coded use
of asm "$30" as "current_stack_pointer". This will let it be used in
non-arch places (like HARDENED_USERCOPY).
Cc: Richard Henderson <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Cc: Matt Turner <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: "Peter Zijlstra (Intel)" <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: "Alexander A. Klimov" <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Matt Turner <[email protected]>
Diffstat (limited to 'arch/alpha/lib/stacktrace.c')
-rw-r--r-- | arch/alpha/lib/stacktrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/lib/stacktrace.c b/arch/alpha/lib/stacktrace.c index 62454a7810e2..2b1176dd5174 100644 --- a/arch/alpha/lib/stacktrace.c +++ b/arch/alpha/lib/stacktrace.c @@ -92,7 +92,7 @@ stacktrace(void) { instr * ret_pc; instr * prologue = (instr *)stacktrace; - register unsigned char * sp __asm__ ("$30"); + unsigned char *sp = (unsigned char *)current_stack_pointer; printk("\tstack trace:\n"); do { |