lkml.org 
[lkml]   [2004]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: i486 emu in mainline?
Christoph Hellwig <hch@lst.de> ha scritto:
> --- kernel-source-2.6.6/arch/i386/Kconfig 2004-05-10 19:47:45.000000000 +1000
> +++ kernel-source-2.6.6-1/arch/i386/Kconfig 2004-05-10 22:21:08.000000000 +1000
> @@ -330,6 +330,41 @@
> This is really intended for distributors who need more
> generic optimizations.
>
> +config X86_EMU486
> + bool "486 emulation"
> + help

Hi,
what about adding an explicit dependancy from M386/M486? A kernel
compiled for 486 or higher won't boot on 386 anyway so the emulation
code would be useless.

diff -Nru a/arch/i386/Kconfig b/arch/i386/Kconfig
--- a/arch/i386/Kconfig 2004-05-25 19:07:16.000000000 +0200
+++ b/arch/i386/Kconfig 2004-05-25 19:10:59.000000000 +0200
@@ -332,6 +332,7 @@

config X86_EMU486
bool "486 emulation"
+ depends on M386 || M486
help
When used on a 386, Linux can emulate 3 instructions from the 486
set. This allows user space programs compiled for 486 to run on a

Signed-off-by: Luca Tettamanti <kronos@kronoz.cjb.net>
(just in case ;) )

Luca
--
Home: http://kronoz.cjb.net
Windows /win'dohz/ n. : thirty-two bit extension and graphical shell to
a sixteen bit patch to an eight bit operating system originally coded
for a four bit microprocessor which was written by a two-bit company
that can't stand a bit of competition.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.139 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site