arm: Add static asssert for context size

Add a static assert for the siginfo_t, mcontext_t and ucontext_t
sizes. These are de-facto ABI options and cannot change size ever.

Reviewed by:		andrew
Differential Revision:	https://reviews.freebsd.org/D34210
This commit is contained in:
Warner Losh 2022-02-10 14:26:46 -07:00
parent 3988ca5aab
commit 0c988f92dc

View File

@ -69,6 +69,10 @@ __FBSDID("$FreeBSD$");
#include <vm/pmap.h>
#include <vm/vm_map.h>
_Static_assert(sizeof(mcontext_t) == 208, "mcontext_t size incorrect");
_Static_assert(sizeof(ucontext_t) == 260, "ucontext_t size incorrect");
_Static_assert(sizeof(siginfo_t) == 64, "siginfo_t size incorrect");
/*
* Clear registers on exec
*/