[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 35/36] bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*
From: |
Warner Losh |
Subject: |
[PATCH v4 35/36] bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZE |
Date: |
Thu, 4 Nov 2021 21:19:16 -0600 |
Now that all architecutres define TARGET_[MU]CONTEXT_SIZE, enforce
requiring them and always check the sizeof target_{u,m}context_t
sizes.
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/freebsd/target_os_ucontext.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/bsd-user/freebsd/target_os_ucontext.h
b/bsd-user/freebsd/target_os_ucontext.h
index 1d0c3c4e65..64ed60e583 100644
--- a/bsd-user/freebsd/target_os_ucontext.h
+++ b/bsd-user/freebsd/target_os_ucontext.h
@@ -27,9 +27,7 @@ typedef struct target_ucontext {
int32_t __spare__[4];
} target_ucontext_t;
-#ifdef TARGET_MCONTEXT_SIZE
G_STATIC_ASSERT(TARGET_MCONTEXT_SIZE == sizeof(target_mcontext_t));
G_STATIC_ASSERT(TARGET_UCONTEXT_SIZE == sizeof(target_ucontext_t));
-#endif /* TARGET_MCONTEXT_SIZE */
#endif /* TARGET_OS_UCONTEXT_H */
--
2.33.0
- Re: [PATCH v4 29/36] bsd-user/arm/target_arch_signal.h: arm machine context and trapframe for signals, (continued)
- [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, 2021/11/04
- [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 <=
- [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