lkml.org 
[lkml]   [2001]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Add CONFIG_X86_RUNTIME_XMM for 2.4.

Hallo,

Currently there is no way to get the support for the SSE2 exceptions compiled in
without getting the P3 memory barriers too. The SSE2 exception code correctly
checks all feature flags, but the memory barriers do not. This patch adds a
CONFIG_X86_RUNTIME_XMM, which enables the SSE2 code, but not the barriers (because
it would be too expensive to check at every barrier, and the old barriers work fine
for now so runtime patching is probably not worth it)

ATM there is no way to select the CONFIG_X86_RUNTIME_FXSR directly as a
CPU configuration, the user needs to add a statement to config.in. In the long
run I suspect we'll just need a couple of "GENERIC" cpu templates which e.g.
contain X86_RUNTIME_FXSR or X86_RUNTIME_XMM. Currently no predefined CPU
is truly generic if you don't want reduced functionality.

Please consider for 2.4.0-ac5+


-Andi


--- linux-work/include/asm-i386/bugs.h-o Mon Jan 8 17:02:04 2001
+++ linux-work/include/asm-i386/bugs.h Mon Jan 8 17:30:29 2001
@@ -89,7 +89,7 @@
printk("done.\n");
}
#endif
-#ifdef CONFIG_X86_XMM
+#if defined(CONFIG_X86_XMM) || defined(CONFIG_X86_RUNTIME_XMM)
if (cpu_has_xmm) {
printk(KERN_INFO "Enabling unmasked SIMD FPU exception support... ");
set_in_cr4(X86_CR4_OSXMMEXCPT);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:52    [W:1.014 / U:1.656 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site