[PATCH] uml: fix processor selection to exclude unsupported processors and features

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).

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Paolo 'Blaisorblade' Giarrusso 2006-10-11 01:21:35 -07:00 коммит произвёл Linus Torvalds
Родитель b5cdb5797d
Коммит 1b4ad242fc
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -7,6 +7,7 @@ choice
config M386 config M386
bool "386" bool "386"
depends on !UML
---help--- ---help---
This is the processor type of your CPU. This information is used for 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 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 config X86_USE_3DNOW
bool bool
depends on MCYRIXIII || MK7 || MGEODE_LX depends on (MCYRIXIII || MK7 || MGEODE_LX) && !UML
default y default y
config X86_OOSTORE config X86_OOSTORE