context switch code question

Robert Schweikert (Robert.Schweikert@abaqus.com)
17 Apr 2003 17:19:32 -0400


Can someone please point me to the context switching code. I am
interested in the context switch structure and the values that are
saved. I am chasing a weird problem with some numerical code that uses
mmx instructions to get flush to zero to work. Specifically I am calling
the

_MM_SET_FLUSH_TO_ZERO_MODE

macro which in turn ends up calling _mm_setcsr(), wherever that might be
implemented.

What I am trying to figure out is a.) is this register value properly
set/reset during context switch and b.) is this particular register
properly transfered when the process gets moved to another CPU.

I assume that this is a configurable option in the kernel since PII and
Pentium do not have this instruction, and thus it could just be that my
kernel is not configured correctly.

I tried to find this type of info without posting but failed.

Thanks,
Robert

-- 
Robert Schweikert <Robert.Schweikert@abaqus.com>
ABAQUS
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/