Skip to content

Commit

Permalink
[PATCH] uml: fix processor selection to exclude unsupported processor…
Browse files Browse the repository at this point in the history
…s 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>
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Oct 11, 2006
1 parent b5cdb57 commit 1b4ad24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/i386/Kconfig.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1b4ad24

Please sign in to comment.