summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/include/asm/ptrace.h
diff options
context:
space:
mode:
authorJinyang He <hejinyang@loongson.cn>2022-10-29 16:29:31 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2022-10-29 16:29:31 +0800
commitb40fa75e1542e069a4eb9b33d62061d4ae734537 (patch)
tree42b4675b92d528242d7252012d482a84d772622e /arch/loongarch/include/asm/ptrace.h
parent247f34f7b80357943234f93f247a1ae6b6c3a740 (diff)
downloadlinux-b40fa75e1542e069a4eb9b33d62061d4ae734537.tar.bz2
LoongArch: Remove unused kernel stack padding
The current LoongArch kernel stack is padded as if obeying the MIPS o32 calling convention (32 bytes), signifying the port's MIPS lineage but no longer making sense. Remove the padding for clarity. Reviewed-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Jinyang He <hejinyang@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/include/asm/ptrace.h')
-rw-r--r--arch/loongarch/include/asm/ptrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/include/asm/ptrace.h b/arch/loongarch/include/asm/ptrace.h
index 17838c6b7ccd..82649a78fec1 100644
--- a/arch/loongarch/include/asm/ptrace.h
+++ b/arch/loongarch/include/asm/ptrace.h
@@ -133,7 +133,7 @@ static inline void die_if_kernel(const char *str, struct pt_regs *regs)
#define current_pt_regs() \
({ \
unsigned long sp = (unsigned long)__builtin_frame_address(0); \
- (struct pt_regs *)((sp | (THREAD_SIZE - 1)) + 1 - 32) - 1; \
+ (struct pt_regs *)((sp | (THREAD_SIZE - 1)) + 1) - 1; \
})
/* Helpers for working with the user stack pointer */