On Sun, 10 Nov 2002, Felix Kühling wrote:
> 
> not too long ago I read on this list that you have to be extra careful
> about using floating point in the kernel. Is the same true for MMX? If
> so, would it be dangerous to compile a kernel module with -march=athlon?
> AFAIK gcc-3.2 generates MMX instructions if the target CPU supports
> them.

If so, the kernel will crash, eventually. However, I thought that gcc
wouldn't use MMX on its own (ie that you have to use the MMX data types to
get MMX operations). Not true?

Many other architectures use a compiler flag like "-msoft-float" or
"-mno-fpu" to explicitly tell gcc that it cannot use the FP unit. If gcc
starts using MMX on its own, we'll have to find the switch that tells it
not to do that. You might want to ask some gcc people about it..

                        Linus



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to