All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] x86 cpu selection cleanup
@ 2002-07-24  0:42 J.A. Magallon
  0 siblings, 0 replies; only message in thread
From: J.A. Magallon @ 2002-07-24  0:42 UTC (permalink / raw)
  To: Lista Linux-Kernel

HI all...

I have introduced in the -jam kernels a cleanup for the x86 cpu selection that
can make things easier for future work.
The patches apply on top of -rc3-aa1, but if there is general interest I can
make them for plain rc3 (or better for final, I know, an rc is not place for
this).

Steps:
- Introduce CONFIG_X86_F00F_BUG (credits to Brian Gerst)
- Make CONFIG_M586 a generic option, not set directly but dependent on
  processor specific configs, like GEN586 (generic 586), PENTIUM (a real
  intel pentium), PENTIUMMMX
- Make CONFIG_M686 a generic option, not set directly but dependent on
  MPENTIUMPRO, MPENTIUM2, MPENTIUM3, MPENTIUM4 (so I splitted PII from
  PPro, both were 686).

(now that I think, I could even name it CONFIG_X86_586 and CONFIG_X86_686,
they are an abstract of what _X86_ features are available)

Things end like this for 586:

if [ "$CONFIG_MGEN586" = "y" ]; then
   define_bool CONFIG_M586 y 
fi 
if [ "$CONFIG_MPENTIUM" = "y" ]; then
   define_bool CONFIG_M586 y
   define_bool CONFIG_X86_TSC_CPU y
fi 
if [ "$CONFIG_MPENTIUMMMX" = "y" ]; then
   define_bool CONFIG_M586 y 
   define_bool CONFIG_X86_TSC_CPU y
   define_bool CONFIG_X86_GOOD_APIC y
fi
if [ "$CONFIG_M586" = "y" ]; then
   define_int  CONFIG_X86_L1_CACHE_SHIFT 5
   define_bool CONFIG_X86_USE_STRING_486 y
   define_bool CONFIG_X86_ALIGNMENT_16 y
   define_bool CONFIG_X86_PPRO_FENCE y
   define_bool CONFIG_X86_F00F_BUG y
fi

And like this for 686:

if [ "$CONFIG_MPENTIUMPRO" = "y" ]; then
   define_bool CONFIG_M686 y
   define_int  CONFIG_X86_L1_CACHE_SHIFT 5
   define_bool CONFIG_X86_PPRO_FENCE y
fi
if [ "$CONFIG_MPENTIUM2" = "y" ]; then
   define_bool CONFIG_M686 y
   define_int  CONFIG_X86_L1_CACHE_SHIFT 5
fi
if [ "$CONFIG_MPENTIUM3" = "y" ]; then
   define_bool CONFIG_M686 y
   define_int  CONFIG_X86_L1_CACHE_SHIFT 5
   define_bool CONFIG_X86_SFENCE y
fi
if [ "$CONFIG_MPENTIUM4" = "y" ]; then
   define_bool CONFIG_M686 y
   define_int  CONFIG_X86_L1_CACHE_SHIFT 7
   define_bool CONFIG_X86_SFENCE y
   define_bool CONFIG_X86_LFENCE y
   define_bool CONFIG_X86_MFENCE y
fi
if [ "$CONFIG_M686" = "y" ]; then
   define_bool CONFIG_X86_TSC_CPU y
   define_bool CONFIG_X86_GOOD_APIC y
   define_bool CONFIG_X86_PGE y
   define_bool CONFIG_X86_USE_PPRO_CHECKSUM y
fi

Comments ?
Direct to trash ?

-- 
J.A. Magallon             \   Software is like sex: It's better when it's free
mailto:jamagallon@able.es  \                    -- Linus Torvalds, FSF T-shirt
Linux werewolf 2.4.19-rc3-jam1, Mandrake Linux 9.0 (Cooker) for i586
gcc (GCC) 3.1.1 (Mandrake Linux 8.3 3.1.1-0.10mdk)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-24  0:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-24  0:42 [RFC] x86 cpu selection cleanup J.A. Magallon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.