summaryrefslogtreecommitdiffstats
path: root/lib/libkse/arch/i386
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-04-30 15:05:17 +0000
committerdeischen <deischen@FreeBSD.org>2003-04-30 15:05:17 +0000
commit63fd7f747915e38a5553bbcb55939d5e483445c7 (patch)
tree9350a8aef34768a87292c8deae80e7fc8f1af999 /lib/libkse/arch/i386
parent7a4c9eae2ed9416c9c848f1f44a8aa02b7e6da7f (diff)
downloadFreeBSD-src-63fd7f747915e38a5553bbcb55939d5e483445c7.zip
FreeBSD-src-63fd7f747915e38a5553bbcb55939d5e483445c7.tar.gz
Move the mailbox to the beginning of the thread and align the
thread so that the context (SSE FPU state) is also aligned.
Diffstat (limited to 'lib/libkse/arch/i386')
-rw-r--r--lib/libkse/arch/i386/include/pthread_md.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libkse/arch/i386/include/pthread_md.h b/lib/libkse/arch/i386/include/pthread_md.h
index 2611101..cb5a344 100644
--- a/lib/libkse/arch/i386/include/pthread_md.h
+++ b/lib/libkse/arch/i386/include/pthread_md.h
@@ -48,4 +48,7 @@ extern int _thr_getcontext(ucontext_t *);
#define THR_GETCONTEXT(ucp) _thr_getcontext(ucp)
#define THR_SETCONTEXT(ucp) _thr_setcontext(ucp)
+
+#define THR_ALIGNBYTES 15
+#define THR_ALIGN(td) (((unsigned)(td) + THR_ALIGNBYTES) & ~THR_ALIGNBYTES)
#endif
OpenPOWER on IntegriCloud