Use of CONFIG_M686

Use of CONFIG_M686

Post by J.A. Magallo » Wed, 29 May 2002 07:30:15



Hi all...

Grepping through the sources or the kernel in search of CONFIG_M686
occurences, there are some places where it looks like that flag is
used as 'Anything bigger than a Pentium'. Now kernel has configs
for PIII, P4, probably PII.

It is the f00f bug handling. Files:

arch/i386/kernel/traps.c:

#ifndef CONFIG_M686 <=================== which also passes if PII, P4...
void __init trap_init_f00f_bug(void)
...

arch/i386/kernel/setup.c:

static void __init init_intel(struct cpuinfo_x86 *c)
{
#ifndef CONFIG_M686 <=================== again
    static int f00f_workaround_enabled = 0;
...

So thats why I asked if we could use a CONFIG_MPENTIUMPRO, and make
CONFIG_M686 a generic flag that is also defined for anything bigger
than a Pentium (that looks like the current usage).

So:
Pentium -> M586
PPro    -> MPENTIUMPRO M686
PII     -> MPENTIUMII  M686
PIII    -> MPENTIUMIII M686
P4      -> MPENTIUM4   M686

--
J.A. Magallon                           #  Let the source be with you...        

Mandrake Linux release 8.3 (Cooker) for i586
Linux werewolf 2.4.19-pre8-jam4 #2 SMP dom may 26 11:20:42 CEST 2002 i686
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Use of CONFIG_M686

Post by J.A. Magallo » Wed, 29 May 2002 07:40:05



Quote:>Hi all...

>arch/i386/kernel/traps.c:

>#ifndef CONFIG_M686 <=================== which also passes if PII, P4...
>void __init trap_init_f00f_bug(void)
>...

Would it be enough with

#if defined(CONFIG_M586) || defined(CONFIG_M586TSC) || defined(CONFIG_M586MMX)

386-486 do not have the bug, do ?

--
J.A. Magallon                           #  Let the source be with you...        

Mandrake Linux release 8.3 (Cooker) for i586
Linux werewolf 2.4.19-pre8-jam4 #2 SMP dom may 26 11:20:42 CEST 2002 i686
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Use of CONFIG_M686

Post by Brian Gers » Wed, 29 May 2002 07:50:07



> Hi all...

> Grepping through the sources or the kernel in search of CONFIG_M686
> occurences, there are some places where it looks like that flag is
> used as 'Anything bigger than a Pentium'. Now kernel has configs
> for PIII, P4, probably PII.

> It is the f00f bug handling. Files:

> arch/i386/kernel/traps.c:

> #ifndef CONFIG_M686 <=================== which also passes if PII, P4...
> void __init trap_init_f00f_bug(void)
> ...

> arch/i386/kernel/setup.c:

> static void __init init_intel(struct cpuinfo_x86 *c)
> {
> #ifndef CONFIG_M686 <=================== again
>     static int f00f_workaround_enabled = 0;
> ...

> So thats why I asked if we could use a CONFIG_MPENTIUMPRO, and make
> CONFIG_M686 a generic flag that is also defined for anything bigger
> than a Pentium (that looks like the current usage).

> So:
> Pentium -> M586
> PPro    -> MPENTIUMPRO M686
> PII     -> MPENTIUMII  M686
> PIII    -> MPENTIUMIII M686
> P4      -> MPENTIUM4   M686

I fixed that in 2.5 by introducing CONFIG_X86_F00F_BUG.

http://marc.theaimsgroup.com/?l=linux-kernel&m=101416800017102&w=4

--

                                                Brian Gerst

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Use of CONFIG_M686

Post by Alan Co » Wed, 29 May 2002 08:10:07




> >Hi all...

> >arch/i386/kernel/traps.c:

> >#ifndef CONFIG_M686 <=================== which also passes if PII, P4...
> >void __init trap_init_f00f_bug(void)
> >...

> Would it be enough with

> #if defined(CONFIG_M586) || defined(CONFIG_M586TSC) || defined(CONFIG_M586MMX)

> 386-486 do not have the bug, do ?

You misunderstand the intent. A 386 or 486 kernel will run on a Pentium
and could therefore hit the error. A PPro kernel would die earlier
anyway. Of course its long been PPRO|Athlon|... and the ifdef wanted
updating. I'd ifdef it on CONFIG_X86_FOOF_BUG and put the FOOF thing
into arch/i386/Config.in nicely with the other stuff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Use of CONFIG_M686

Post by Dave Jone » Thu, 30 May 2002 23:30:22


 > You misunderstand the intent. A 386 or 486 kernel will run on a Pentium
 > and could therefore hit the error. A PPro kernel would die earlier
 > anyway. Of course its long been PPRO|Athlon|... and the ifdef wanted
 > updating. I'd ifdef it on CONFIG_X86_FOOF_BUG and put the FOOF thing
 > into arch/i386/Config.in nicely with the other stuff

Agreed. This is what's done in 2.5 btw.

--
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. enlightenment keyboard shortcuts Q's: using the win key, using c+a+sh, conf file?

Hi,

I like the keyboard shortcuts in enlightenment, however, I'm runing into a
few problems:

1. I can't use the WIN key for any shortcuts. For example, I would like WIN
to open the menu (like windows)
2. I tried setting keys to Ctrl + Alt + Shift + <some key>. They work while
I'm in session, but as soon as I log out, they get changed to Ctrl + Shift.
Even if I save the session.
3. When I change settings, do they get stored in some conf file? That would
be nice so that I could perform edits to import changes quickly instead of
going through the GUI. I grepped on obvious strings, but I couldn't find a
configuration file.

Any help would be greatly appreciated.

David

2. rpc.ttdbserverd annoying messages

3. cannot print using lpr without PPP connection using Caldera (Red Hat)

4. How to use [delete] key in Linux?

5. Problem using CD in Win98 after using Linux

6. Creating a RAM disk

7. Using telnet from standalone PC using dialup? How?

8. EIDE - ide_2.8.patch.67+ !!

9. Using Linux as a gateway to the internet (using ppp) for win95

10. Can the accept() be used after using one successful connect() with the same TCP port ?

11. Using C, what ports are being used by which programs?

12. using network boot to install RedHat using Anaconda

13. Using Sed and Shell Variables in Multiple Lines Search and Replace using /c\