Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154830063
D34213.id102522.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
932 B
Referenced Files
None
Subscribers
None
D34213.id102522.diff
View Options
Index: sys/powerpc/powerpc/exec_machdep.c
===================================================================
--- sys/powerpc/powerpc/exec_machdep.c
+++ sys/powerpc/powerpc/exec_machdep.c
@@ -130,6 +130,18 @@
extern struct sysentvec elf64_freebsd_sysvec_v2;
#endif
+#ifdef __powerpc64__
+_Static_assert(sizeof(mcontext_t) == 1392, "mcontext_t bogusly changed size");
+_Static_assert(sizeof(ucontext_t) == 1472, "mcontext_t bogusly changed size");
+#ifdef COMPAT_FREEBSD32
+_Static_assert(sizeof(mcontext32_t) == 1224, "mcontext32_t bogusly changed size");
+_Static_assert(sizeof(ucontext32_t) == 1280, "ucontext32_t bogusly changed size");
+#endif /* COMPAT_FREEBSD32 */
+#else /* powerpc */
+_Static_assert(sizeof(mcontext_t) == 1224, "mcontext_t bogusly changed size");
+_Static_assert(sizeof(ucontext_t) == 1280, "mcontext_t bogusly changed size");
+#endif
+
void
sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 1:23 PM (8 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32517485
Default Alt Text
D34213.id102522.diff (932 B)
Attached To
Mode
D34213: powerpc: Add static asssert for context size
Attached
Detach File
Event Timeline
Log In to Comment