lkml.org 
[lkml]   [2003]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] 2.6 workaround for Athlon/Opteron prefetch errata
    On Fri, Sep 12, 2003 at 08:28:51PM +0200, Andi Kleen wrote:
    > On Fri, 12 Sep 2003 20:22:16 +0200
    > Adrian Bunk <bunk@fs.tum.de> wrote:
    >
    >
    > >
    > > But even CONFIG_X86_GENERIC doesn't do what you expect. A kernel
    > > compiled for Athlon wouldn't run on a Pentium 4 even with
    > > CONFIG_X86_GENERIC.
    >
    > It does. Just try it.
    >
    > >
    > > Quoting arch/i386/Kconfig in -test5:
    > >
    > > <-- snip -->
    > >
    > > config X86_USE_3DNOW
    > > bool
    > > depends on MCYRIXIII || MK7
    > > default y
    >
    > That's obsolete and could be removed. All 3dnow! code is dynamically patched depending on the CPUID.

    Quoting e.g. arch/i386/lib/memcpy.c:

    <-- snip -->

    void * memcpy(void * to, const void * from, size_t n)
    {
    #ifdef CONFIG_X86_USE_3DNOW
    return __memcpy3d(to, from, n);
    #else
    return __memcpy(to, from, n);
    #endif
    }

    <-- snip -->

    This is hardly dynamic.

    > -Andi

    cu
    Adrian

    --

    "Is there not promise of rain?" Ling Tan asked suddenly out
    of the darkness. There had been need of rain for many days.
    "Only a promise," Lao Er said.
    Pearl S. Buck - Dragon Seed

    -
    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 13:48    [W:0.024 / U:63.432 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site