Add ucontext_t for freebsd-aarch64
Resolves #3217
r? @JohnTitor
rustbot has assigned @JohnTitor. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r? to explicitly pick a reviewer
The ucontext changes look good, but could you link whatever you are referencing for mcontext_t? https://github.com/freebsd/freebsd-src/blob/1a207e5cdf997bd5a04e020d26039844a0c1294f/sys/arm64/include/ucontext.h#L54-L61 (linked from https://github.com/rust-lang/libc/issues/3217) has a different definition.
The definition you link is included in the aarch64.rs submodule, which is intended for 64-bit ARM. The one I added is in the arm.rs submodule for 32-bit ARM architectures; its corresponding documentation can be found here:
https://github.com/freebsd/freebsd-src/blob/2b7f2890a812eb09dccaa8069483566a3b292338/sys/arm/include/ucontext.h#L74-L84
Likewise, documentation for PowerPC can be found here:
https://github.com/freebsd/freebsd-src/blob/2b7f2890a812eb09dccaa8069483566a3b292338/sys/powerpc/include/ucontext.h#L39-L51
@asomers could I get an ack from you before I backport this?
nack @tgross35 there's an error for armv7. I'll open a PR to fix it.