lkml.org 
[lkml]   [1998]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: amd3d flag listed as flag 31
    On Thu, Dec 10, 1998 at 08:02:35PM +0100, Robbert Muller wrote:

    > like i said in the subject with 2.1.131-ac6 my cpuinfo contains the
    > following in
    > ----
    > processor : 0
    > vendor_id : AuthenticAMD
    > cpu family : 5
    > model : 8
    > model name : AMD-K6(tm) 3D processor
    > stepping : unknown
    > cpu MHz : 299.382222
    > fdiv_bug : no
    > hlt_bug : no
    > sep_bug : no
    > f00f_bug : no
    > fpu : yes
    > fpu_exception : yes
    > cpuid level : 1
    > wp : yes
    > flags : fpu vme de pse tsc msr mce cx8 sep mmx 31
    > bogomips : 598.02
    > ------

    > and i think that 31 must be amd3d, If search the code but i cant't find
    > the error, it seems that the code is correct.

    Wat you are looking for is in arch/i386/kernel/setup.c:

    static char *x86_cap_flags[] = {
    "fpu", "vme", "de", "pse", "tsc", "msr", "6", "mce",
    "cx8", "9", "10", "sep", "12", "pge", "14", "cmov",
    "16", "17", "18", "19", "20", "21", "22", "mmx",
    "24", "25", "26", "27", "28", "29", "30", "31"
    };

    If you wish for your kernel to show '3dnow!' instead of '31', you can change
    the string in that piece of code. I suspect, however, that it isn't done in
    the stock kernel because flag 31 isn't 'officially' 3dnow!, and intel might
    use it for itself in some way (and screw 3dnow! drivers/applications that
    dont check if the cpu is, indeed, an AMD.) -- This is just a guess though, I
    dont know enough about ia32 and who specifies what to say anything
    meaningful about it.

    (Note that changing 31 into 3dnow! _could_ break code that checks if flag 31
    is set by reading /proc/cpuinfo. I dont know of any such code and it'd be
    silly code anyway (because who knows what the flag will be named in later
    kernels) but I'll mention it none the less :)

    Regards,
    Thomas.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:46    [W:0.029 / U:0.172 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site