Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144388513
D34212.id102521.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
681 B
Referenced Files
None
Subscribers
None
D34212.id102521.diff
View Options
Index: sys/amd64/amd64/exec_machdep.c
===================================================================
--- sys/amd64/amd64/exec_machdep.c
+++ sys/amd64/amd64/exec_machdep.c
@@ -95,6 +95,13 @@
#include <machine/specialreg.h>
#include <machine/trap.h>
+_Static_assert(sizeof(mcontext_t) == 800, "mcontext_t bogusly changed size");
+_Static_assert(sizeof(ucontext_t) == 880, "mcontext_t bogusly changed size");
+#ifdef COMPAT_FREEBSD32
+_Static_assert(sizeof(mcontext32_t) == 640, "mcontext32_t bogusly changed size");
+_Static_assert(sizeof(ucontext32_t) == 704, "ucontext32_t bogusly changed size");
+#endif /* COMPAT_FREEBSD32 */
+
/*
* Send an interrupt to process.
*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 4:40 AM (14 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28538653
Default Alt Text
D34212.id102521.diff (681 B)
Attached To
Mode
D34212: amd64: Add static asssert for context size
Attached
Detach File
Event Timeline
Log In to Comment