Skip to content
Snippets Groups Projects
Commit ca4fc704 authored by Warner Losh's avatar Warner Losh
Browse files

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: default avatarWarner Losh <imp@bsdimp.com>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 3ac34cc9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment