bsd-user/freebsd: Create common target_os_ucontext.h file
authorWarner Losh <imp@bsdimp.com>
Fri, 29 Oct 2021 14:39:01 +0000 (08:39 -0600)
committerWarner Losh <imp@bsdimp.com>
Sat, 8 Jan 2022 05:58:51 +0000 (22:58 -0700)
commitaa3a2428308fe6831ce4b2f9d28ff8572b74f6c4
treee8a7b2f3d2fb42736c177db1d8f84d825facbcbd
parent73d72229fca1950a1ae48843680ba0adcf1518e2
bsd-user/freebsd: Create common target_os_ucontext.h file

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>
bsd-user/freebsd/target_os_signal.h
bsd-user/freebsd/target_os_ucontext.h [new file with mode: 0644]