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:
@@ -69,6 +69,10 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <vm/pmap.h>
|
#include <vm/pmap.h>
|
||||||
#include <vm/vm_map.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
|
* Clear registers on exec
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user