[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 30/36] bsd-user/arm/target_arch_signal.h: Define size of *cont
From: |
Warner Losh |
Subject: |
[PATCH v4 30/36] bsd-user/arm/target_arch_signal.h: Define size of *context_t |
Date: |
Thu, 4 Nov 2021 21:19:11 -0600 |
Define the native sizes of mcontext_t and ucontext_t so that the tests
in target_os_ucontext.h ensure the size of arm's version of these
structures is correct.
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/arm/target_arch_signal.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bsd-user/arm/target_arch_signal.h
b/bsd-user/arm/target_arch_signal.h
index 9527335cc9..f1844dbf22 100644
--- a/bsd-user/arm/target_arch_signal.h
+++ b/bsd-user/arm/target_arch_signal.h
@@ -74,6 +74,9 @@ typedef struct target_mcontext {
abi_int mc_spare[33];
} target_mcontext_t;
+#define TARGET_MCONTEXT_SIZE 208
+#define TARGET_UCONTEXT_SIZE 260
+
#include "target_os_ucontext.h"
struct target_sigframe {
--
2.33.0
- Re: [PATCH v4 33/36] bsd-user/arm/target_arch_signal.c: arm set_mcontext, (continued)
- [PATCH v4 20/36] bsd-user/arm/target_arch_cpu.h: Implement system call dispatch, Warner Losh, 2021/11/04
- [PATCH v4 24/36] bsd-user/arm/target_arch_thread.h: Routines to create and switch to a thread, Warner Losh, 2021/11/04
- [PATCH v4 29/36] bsd-user/arm/target_arch_signal.h: arm machine context and trapframe for signals, Warner Losh, 2021/11/04
- [PATCH v4 21/36] bsd-user/arm/target_arch_reg.h: Implement core dump register copying, Warner Losh, 2021/11/04
- [PATCH v4 25/36] bsd-user/arm/target_arch_elf.h: arm defines for ELF, Warner Losh, 2021/11/04
- [PATCH v4 27/36] bsd-user/arm/target_arch_elf.h: arm get_hwcap2 impl, Warner Losh, 2021/11/04
- [PATCH v4 28/36] bsd-user/arm/target_arch_signal.h: arm specific signal registers and stack, Warner Losh, 2021/11/04
- [PATCH v4 30/36] bsd-user/arm/target_arch_signal.h: Define size of *context_t,
Warner Losh <=
- [PATCH v4 31/36] bsd-user/arm/target_arch_signal.c: arm set_sigtramp_args, Warner Losh, 2021/11/04
- [PATCH v4 32/36] bsd-user/arm/target_arch_signal.c: arm get_mcontext, Warner Losh, 2021/11/04
- [PATCH v4 35/36] bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZE, Warner Losh, 2021/11/04
- [PATCH v4 34/36] bsd-user/arm/target_arch_signal.c: arm get_ucontext_sigreturn, Warner Losh, 2021/11/04
- [PATCH v4 36/36] bsd-user: add arm target build, Warner Losh, 2021/11/04