diff options
author | Warner Losh <imp@bsdimp.com> | 2021-11-04 17:21:48 -0600 |
---|---|---|
committer | Warner Losh <imp@bsdimp.com> | 2022-01-07 22:58:51 -0700 |
commit | ca4fc704a40b5ad36a7ced03331224293888fafb (patch) | |
tree | 033a0541caedf7bd14f765df55416ba5b7b9f557 /bsd-user | |
parent | 3ac34cc98576425a63763b7671decf11fd606ec6 (diff) |
bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZE
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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user')
-rw-r--r-- | bsd-user/freebsd/target_os_ucontext.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/bsd-user/freebsd/target_os_ucontext.h b/bsd-user/freebsd/target_os_ucontext.h index dd61aec7cc..41b28b2c15 100644 --- a/bsd-user/freebsd/target_os_ucontext.h +++ b/bsd-user/freebsd/target_os_ucontext.h @@ -27,10 +27,8 @@ 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 */ struct target_sigframe; |