/SPARTAN/trunk/contrib/conf/dot.bochsrc |
---|
130,7 → 130,7 |
# drive letters such as a: or b: as the path. Raw floppy access is not |
# supported on Windows 95 and 98. |
#======================================================================= |
floppya: 1_44=SPARTAN/image.bin, status=inserted |
floppya: 1_44=image.bin, status=inserted |
#floppya: 1_44=/dev/fd0, status=inserted |
#======================================================================= |
/SPARTAN/trunk/arch/ia32/include/cpuid.h |
---|
38,13 → 38,37 |
__u32 cpuid_edx; |
} __attribute__ ((packed)); |
extern int has_cpuid(void); |
static inline __u32 has_cpuid(void) |
{ |
__u32 val, ret; |
__asm__ volatile ( |
"pushf\n" /* read flags */ |
"popl %0\n" |
"movl %0, %1\n" |
"btcl $21, %1\n" /* swap the ID bit */ |
"pushl %1\n" /* propagate the change into flags */ |
"popf\n" |
"pushf\n" |
"popl %1\n" |
"andl $(1 << 21), %0\n" /* interrested only in ID bit */ |
"andl $(1 << 21), %1\n" |
"xorl %1, %0\n" |
: "=r" (ret), "=r" (val) |
); |
return ret; |
} |
static inline void cpuid(__u32 cmd, struct cpu_info *info) |
{ |
__asm__ volatile ( |
"movl %4, %%eax\n" |
"cpuid\n" |
"movl %%eax,%0\n" |
"movl %%ebx,%1\n" |
"movl %%ecx,%2\n" |
/SPARTAN/trunk/arch/ia32/Makefile.inc |
---|
40,7 → 40,6 |
arch_sources= \ |
src/arch/context.s \ |
src/arch/debug/panic.s \ |
src/arch/cpuid.s \ |
src/arch/delay.s \ |
src/arch/asm.S \ |
src/arch/proc/scheduler.c \ |
/SPARTAN/trunk/arch/ia32/src/cpuid.s |
---|
File deleted |