public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* uml: fix processor selection to exclude unsupported processors and features
@ 2006-10-17 14:58 Paolo 'Blaisorblade' Giarrusso
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo 'Blaisorblade' Giarrusso @ 2006-10-17 14:58 UTC (permalink / raw)
  To: stable
  Cc: Jeff Dike, linux-kernel, user-mode-linux-devel,
	Paolo 'Blaisorblade' Giarrusso

Makes UML compile on any possible processor choice. The two problems were:

*) x86 code, when 386 is selected, checks at runtime boot_cpuflags, which we do
   not have.
*) 3Dnow support for memcpy() et al. does not compile currently and fixing this
   is not trivial, so simply disable it; with this change, if one selects MK7
   UML compiles (while it did not).
Merged upstream; I'm resending since spam filters blocked my previous mail.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Index: linux-2.6.git/arch/i386/Kconfig.cpu
===================================================================
--- linux-2.6.git.orig/arch/i386/Kconfig.cpu
+++ linux-2.6.git/arch/i386/Kconfig.cpu
@@ -7,6 +7,7 @@ choice
 
 config M386
 	bool "386"
+	depends on !UML
 	---help---
 	  This is the processor type of your CPU. This information is used for
 	  optimizing purposes. In order to compile a kernel that can run on
@@ -301,7 +302,7 @@ config X86_USE_PPRO_CHECKSUM
 
 config X86_USE_3DNOW
 	bool
-	depends on MCYRIXIII || MK7 || MGEODE_LX
+	depends on (MCYRIXIII || MK7 || MGEODE_LX) && !UML
 	default y
 
 config X86_OOSTORE

^ permalink raw reply	[flat|nested] 2+ messages in thread
* uml: fix processor selection to exclude unsupported processors and features
@ 2006-10-15 19:43 Paolo 'Blaisorblade' Giarrusso
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo 'Blaisorblade' Giarrusso @ 2006-10-15 19:43 UTC (permalink / raw)
  To: stable
  Cc: Jeff Dike, linux-kernel, user-mode-linux-devel,
	Paolo 'Blaisorblade' Giarrusso

Makes UML compile on any possible processor choice. The two problems were:

*) x86 code, when 386 is selected, checks at runtime boot_cpuflags, which we do
   not have.
*) 3Dnow support for memcpy() et al. does not compile currently and fixing this
   is not trivial, so simply disable it; with this change, if one selects MK7
   UML compiles (while it did not).
Merged upstream.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Index: linux-2.6.git/arch/i386/Kconfig.cpu
===================================================================
--- linux-2.6.git.orig/arch/i386/Kconfig.cpu
+++ linux-2.6.git/arch/i386/Kconfig.cpu
@@ -7,6 +7,7 @@ choice
 
 config M386
 	bool "386"
+	depends on !UML
 	---help---
 	  This is the processor type of your CPU. This information is used for
 	  optimizing purposes. In order to compile a kernel that can run on
@@ -301,7 +302,7 @@ config X86_USE_PPRO_CHECKSUM
 
 config X86_USE_3DNOW
 	bool
-	depends on MCYRIXIII || MK7 || MGEODE_LX
+	depends on (MCYRIXIII || MK7 || MGEODE_LX) && !UML
 	default y
 
 config X86_OOSTORE

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-17 19:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-17 14:58 uml: fix processor selection to exclude unsupported processors and features Paolo 'Blaisorblade' Giarrusso
  -- strict thread matches above, loose matches on Subject: below --
2006-10-15 19:43 Paolo 'Blaisorblade' Giarrusso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox