Messages in this thread | | | Date | Sun, 14 Jun 1998 13:55:11 -0400 (EDT) | From | "Steven N. Hirsch" <> | Subject | Cyrix 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
| |