[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 17/19] linux-user/s390x: Rename __SIGNAL_FRAMESIZE to STACK_FR
From: |
Richard Henderson |
Subject: |
[PATCH v6 17/19] linux-user/s390x: Rename __SIGNAL_FRAMESIZE to STACK_FRAME_OVERHEAD |
Date: |
Fri, 29 Sep 2023 19:15:27 -0700 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
linux-user/s390x/signal.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/linux-user/s390x/signal.c b/linux-user/s390x/signal.c
index f72165576f..0f8b8e04bf 100644
--- a/linux-user/s390x/signal.c
+++ b/linux-user/s390x/signal.c
@@ -26,7 +26,8 @@
#define __NUM_FPRS 16
#define __NUM_ACRS 16
-#define __SIGNAL_FRAMESIZE 160 /* FIXME: 31-bit mode -> 96 */
+/* Minimum stack frame size */
+#define STACK_FRAME_OVERHEAD 160
#define _SIGCONTEXT_NSIG 64
#define _SIGCONTEXT_NSIG_BPW 64 /* FIXME: 31-bit mode -> 32 */
@@ -63,7 +64,7 @@ typedef struct {
} target_sigcontext;
typedef struct {
- uint8_t callee_used_stack[__SIGNAL_FRAMESIZE];
+ uint8_t callee_used_stack[STACK_FRAME_OVERHEAD];
target_sigcontext sc;
target_sigregs sregs;
int signo;
@@ -83,7 +84,7 @@ struct target_ucontext {
};
typedef struct {
- uint8_t callee_used_stack[__SIGNAL_FRAMESIZE];
+ uint8_t callee_used_stack[STACK_FRAME_OVERHEAD];
/*
* This field is no longer initialized by the kernel, but it's still a part
* of the ABI.
--
2.34.1
- [PATCH v6 05/19] linux-user: Use ImageSource in load_symbols, (continued)
- [PATCH v6 05/19] linux-user: Use ImageSource in load_symbols, Richard Henderson, 2023/09/29
- [PATCH v6 03/19] linux-user: Do not clobber bprm_buf swapping ehdr, Richard Henderson, 2023/09/29
- [PATCH v6 02/19] linux-user: Tidy loader_exec, Richard Henderson, 2023/09/29
- [PATCH v6 07/19] linux-user: Load vdso image if available, Richard Henderson, 2023/09/29
- [PATCH v6 13/19] linux-user/hppa: Add vdso, Richard Henderson, 2023/09/29
- [PATCH v6 12/19] linux-user/arm: Add vdso, Richard Henderson, 2023/09/29
- [PATCH v6 06/19] linux-user: Replace bprm->fd with bprm->src.fd, Richard Henderson, 2023/09/29
- [PATCH v6 18/19] linux-user/s390x: Add vdso, Richard Henderson, 2023/09/29
- [PATCH v6 10/19] linux-user/x86_64: Add vdso, Richard Henderson, 2023/09/29
- [PATCH v6 16/19] linux-user/ppc: Add vdso, Richard Henderson, 2023/09/29
- [PATCH v6 17/19] linux-user/s390x: Rename __SIGNAL_FRAMESIZE to STACK_FRAME_OVERHEAD,
Richard Henderson <=
- [PATCH v6 08/19] linux-user: Add gen-vdso tool, Richard Henderson, 2023/09/29
- [PATCH v6 15/19] linux-user/loongarch64: Add vdso, Richard Henderson, 2023/09/29
- [PATCH v6 09/19] linux-user/i386: Add vdso, Richard Henderson, 2023/09/29
- [PATCH v6 14/19] linux-user/riscv: Add vdso, Richard Henderson, 2023/09/29
- [PATCH v6 19/19] build: Add update-linux-vdso makefile rule, Richard Henderson, 2023/09/29
- [PATCH v6 11/19] linux-user/aarch64: Add vdso, Richard Henderson, 2023/09/29