[PATCH v11 02/15] fixup! unwind_user/x86: Enable frame pointer unwinding on x86

Jens Remus posted 15 patches 3 months, 2 weeks ago
There is a newer version of this series
[PATCH v11 02/15] fixup! unwind_user/x86: Enable frame pointer unwinding on x86
Posted by Jens Remus 3 months, 2 weeks ago
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
---

Notes (jremus):
    This fixup adjusts patch "[PATCH 12/12] unwind_user/x86: Enable frame
    pointer unwinding on x86" [1] to my preceding fixup, which limits the
    down-/upscaling by word size to unwind user (compat) fp.
    
    [1]: https://lore.kernel.org/lkml/20250924080119.613695709@infradead.org/

 arch/x86/include/asm/unwind_user.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/x86/include/asm/unwind_user.h b/arch/x86/include/asm/unwind_user.h
index e649b8fea2aa..5e0755ea3086 100644
--- a/arch/x86/include/asm/unwind_user.h
+++ b/arch/x86/include/asm/unwind_user.h
@@ -2,10 +2,10 @@
 #ifndef _ASM_X86_UNWIND_USER_H
 #define _ASM_X86_UNWIND_USER_H
 
-#define ARCH_INIT_USER_FP_FRAME				\
-	.cfa_off	=  2,				\
-	.ra_off		= -1,				\
-	.fp_off		= -2,				\
+#define ARCH_INIT_USER_FP_FRAME(ws)			\
+	.cfa_off	=  2*(ws),			\
+	.ra_off		= -1*(ws),			\
+	.fp_off		= -2*(ws),			\
 	.use_fp		= true,
 
 #endif /* _ASM_X86_UNWIND_USER_H */
-- 
2.48.1