summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-09-01 19:13:36 +0000
committermarcel <marcel@FreeBSD.org>2006-09-01 19:13:36 +0000
commit657a4c30ac3b710ebacfff32ca7d077b97858678 (patch)
treecf59fd7f13336fdccaed3f1f5508cae44d44fca2 /lib
parenta081b45edecb461e01b2e27d5f1fc022cdb8a28e (diff)
downloadFreeBSD-src-657a4c30ac3b710ebacfff32ca7d077b97858678.zip
FreeBSD-src-657a4c30ac3b710ebacfff32ca7d077b97858678.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/libkse/arch/powerpc/include/pthread_md.h1
-rw-r--r--lib/libpthread/arch/powerpc/include/pthread_md.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/libkse/arch/powerpc/include/pthread_md.h b/lib/libkse/arch/powerpc/include/pthread_md.h
index 8ff3d26..2b13e4b 100644
--- a/lib/libkse/arch/powerpc/include/pthread_md.h
+++ b/lib/libkse/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;
};
diff --git a/lib/libpthread/arch/powerpc/include/pthread_md.h b/lib/libpthread/arch/powerpc/include/pthread_md.h
index 8ff3d26..2b13e4b 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;
};
OpenPOWER on IntegriCloud