diff options
author | deischen <deischen@FreeBSD.org> | 2003-04-30 15:05:17 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2003-04-30 15:05:17 +0000 |
commit | 63fd7f747915e38a5553bbcb55939d5e483445c7 (patch) | |
tree | 9350a8aef34768a87292c8deae80e7fc8f1af999 /lib/libpthread/arch/i386/include/pthread_md.h | |
parent | 7a4c9eae2ed9416c9c848f1f44a8aa02b7e6da7f (diff) | |
download | FreeBSD-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/libpthread/arch/i386/include/pthread_md.h')
-rw-r--r-- | lib/libpthread/arch/i386/include/pthread_md.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/arch/i386/include/pthread_md.h b/lib/libpthread/arch/i386/include/pthread_md.h index 2611101..cb5a344 100644 --- a/lib/libpthread/arch/i386/include/pthread_md.h +++ b/lib/libpthread/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 |