lkml.org 
[lkml]   [1998]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectCyrix detect patch
Rafael,

With egcs-1.03a (don't know about others), some of your inline asm code
gets turned into an illegal instruction, "movb %bp, %al".

Changing this:

+static inline void setCx86(__u8 reg, __u8 data)
+{
+ asm ("outb %%al,$0x22\n\t"
+ "movb %1,%%al\n\t"
+ "outb %%al,$0x23" : : "al" (reg), "g" (data));
^^^^
to this:
+ "outb %%al,$0x23" : : "al" (reg), "q" (data));
^^^^
generates a more rational bit of assembler which compiles and boots.

However, /proc/cpuinfo is still showing garbage and incorrect data on my
box (6x86 P150+):

processor : 0
cpu family : 4
model : unknown
vendor_id : unknown
stepping : unknown
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
fpu : yes
fpu_exception : yes
cpuid level : -1
wp : yes
flags :
bogomips : 0.01


Steve



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2011 Jasper Spaans