openrisc: rename STACK_FRAME_OVERHEAD to MIN_REDZONE
Subsystems (2)
PATCH 1/1 openrisc: rename STACK_FRAME_OVERHEAD to MIN_REDZONE
As mentioned in the TODO, the STACK_FRAME_OVERHEAD is the red zone, hence renamed to MIN_REDZONE in ptrace.h and processor.h.
Signed-off-by Taimoor Zaeem <[email protected]>
--- arch/openrisc/include/asm/processor.h | 2 +- arch/openrisc/include/asm/ptrace.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
arch/openrisc/include/asm/processor.h +1 -1
@@ -55,7 +55,7 @@ struct thread_struct {* user->kernel transition registers are reached by this (i.e. not regs * for running signal handler) */ -#define user_regs (thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - STACK_FRAME_OVERHEAD)) - 1) +#define user_regs (thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - MIN_REDZONE)) - 1)/* * Dito but for the currently running task
arch/openrisc/include/asm/ptrace.h +1 -2
@@ -94,8 +94,7 @@ struct pt_regs {long dummy2;/* Cheap alignment fix */ }; -/* TODO: Rename this to REDZONE because that's what it is */ -#define STACK_FRAME_OVERHEAD 128/* size of minimum stack frame */ +#define MIN_REDZONE 128/* size of minimum stack frame */ #define MAX_REG_OFFSET offsetof(struct pt_regs, orig_gpr11)
Signature · 1 line
2.43.0