Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144376564
D32958.id102531.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D32958.id102531.diff
View Options
Index: sys/arm64/arm64/exec_machdep.c
===================================================================
--- sys/arm64/arm64/exec_machdep.c
+++ sys/arm64/arm64/exec_machdep.c
@@ -60,6 +60,10 @@
#include <machine/vfp.h>
#endif
+_Static_assert(sizeof(mcontext_t) == 880, "mcontext_t bogusly changed size");
+_Static_assert(sizeof(ucontext_t) == 960, "mcontext_t bogusly changed size");
+_Static_assert(sizeof(siginfo_t) == 80, "siginfo_t bogusly changed size");
+
static void get_fpcontext(struct thread *td, mcontext_t *mcp);
static void set_fpcontext(struct thread *td, mcontext_t *mcp);
Index: sys/arm64/arm64/freebsd32_machdep.c
===================================================================
--- sys/arm64/arm64/freebsd32_machdep.c
+++ sys/arm64/arm64/freebsd32_machdep.c
@@ -48,6 +48,10 @@
#include <vm/pmap.h>
#include <vm/vm_map.h>
+_Static_assert(sizeof(mcontext32_t) == 208, "mcontext32_t bogusly changed size");
+_Static_assert(sizeof(ucontext32_t) == 260, "ucontext32_t bogusly changed size");
+_Static_assert(sizeof(struct siginfo32) == 64, "ucontext32_t bogusly changed size");
+
extern void freebsd32_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask);
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 3:20 AM (19 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28530606
Default Alt Text
D32958.id102531.diff (1 KB)
Attached To
Mode
D32958: aarch64: Add static asssert for context size
Attached
Detach File
Event Timeline
Log In to Comment