summary refs log tree commit diff stats
path: root/bsd-user/freebsd/target_os_ucontext.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsd-user/freebsd/target_os_ucontext.h: Prefer env as arg name for ↵Warner Losh2022-01-301-3/+3
| | | | | | | CPUArchState args Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
* bsd-user/freebsd/target_os_ucontext.h: Require TARGET_*CONTEXT_SIZEWarner Losh2022-01-071-2/+0
| | | | | | | | | 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>
* bsd-user/target_os_signal.h: Move signal prototypes to target_os_ucontext.hWarner Losh2022-01-071-0/+11
| | | | | | | | Switch to the CPUArchState typedef and move target-provided prototypes to target_os_ucontext.h. Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
* bsd-user/freebsd: Create common target_os_ucontext.h fileWarner Losh2022-01-071-0/+35
FreeBSD has a MI ucontext structure that contains the MD mcontext machine state and other things that are machine independent. Create an include file for all the ucontext stuff. It needs to be included in the arch specific files after target_mcontext is defined. This is largely copied from sys/_ucontext.h with the comments about layout removed because we don't support ancient FreeBSD binaries. Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>