aboutsummaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2006-09-01 19:13:36 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2006-09-01 19:13:36 +0000
commit4c91d168a764f27330d2a7aec87fe47366403c54 (patch)
treecf59fd7f13336fdccaed3f1f5508cae44d44fca2 /lib/libpthread
parent5df93cb78734261e08cf3c1f7a3a615cd6e02449 (diff)
The ucontext is 16-byte aligned, which means that struct tcb is
16-byte aligned. Consequently, struct tcb is a multiple of 16 bytes in size. We need to make sure there's no padding after struct ppc32_tp. We do this by explicitly adding the necessary padding in front of it.
Notes
Notes: svn path=/head/; revision=161830
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/arch/powerpc/include/pthread_md.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libpthread/arch/powerpc/include/pthread_md.h b/lib/libpthread/arch/powerpc/include/pthread_md.h
index 8ff3d2674208..2b13e4bc11cd 100644
--- a/lib/libpthread/arch/powerpc/include/pthread_md.h
+++ b/lib/libpthread/arch/powerpc/include/pthread_md.h
@@ -70,6 +70,7 @@ struct tcb {
struct pthread *tcb_thread;
struct kcb *tcb_curkcb;
long tcb_isfake;
+ long tcb_spare[3];
struct ppc32_tp tcb_tp;
};