bsd-user/arm/target_arch_signal.h: Define size of *context_t
authorWarner Losh <imp@bsdimp.com>
Thu, 4 Nov 2021 23:08:04 +0000 (17:08 -0600)
committerWarner Losh <imp@bsdimp.com>
Sat, 8 Jan 2022 05:58:51 +0000 (22:58 -0700)
Define the native sizes of mcontext_t and ucontext_t so that the tests
in target_os_ucontext.h ensure the size of arm's version of these
structures is correct.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/arm/target_arch_signal.h

index 9527335cc9823d4513d0216ff29861cf62372407..f1844dbf2251713f034c789f6c9dea1b39af9c96 100644 (file)
@@ -74,6 +74,9 @@ typedef struct target_mcontext {
     abi_int     mc_spare[33];
 } target_mcontext_t;
 
+#define TARGET_MCONTEXT_SIZE 208
+#define TARGET_UCONTEXT_SIZE 260
+
 #include "target_os_ucontext.h"
 
 struct target_sigframe {