[PATCH] Mantaining turnstile aligned to 128 bytes in i386 CPUs

Ivan Voras ivoras at fer.hr
Wed Jan 17 20:58:11 UTC 2007


Matthew Dillon wrote:

>     * Saving the FP state.  The kernel doesn't have to save or restore
>       anything if userland was not using the floating point unit.  In
>       fact, the kernel doesn't even need to FNINIT!  All the kernel needs
>       to do is CLTS and FNCLEX to make the FP unit usable for media copy
>       instructions, then set CR0_TS when it is finished.

Does the same hold true with kernel threads in FreeBSD (e.g. two threads
using FPU)?





More information about the freebsd-current mailing list