diff options
author | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-02-20 11:15:03 +0000 |
---|---|---|
committer | kaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk> | 2004-02-20 11:15:03 +0000 |
commit | 92207c117ac7c3b4f3304fb6855575844da73980 (patch) | |
tree | 3e9d4af5dbfb9619d7288c0f84d22643a5cd1b71 /xenolinux-2.4.25-sparse/include/asm-xeno/bugs.h | |
parent | b39cfce3243dfbfa5d877425adad77a108fb1094 (diff) | |
download | xen-92207c117ac7c3b4f3304fb6855575844da73980.tar.gz xen-92207c117ac7c3b4f3304fb6855575844da73980.tar.bz2 xen-92207c117ac7c3b4f3304fb6855575844da73980.zip |
bitkeeper revision 1.735 (4035ec37QrObBVUp0-0jtnp646Qg3g)
xenolinux-sparse:
new file
Many files:
Port to linux-2.4.25
.del-xenolinux-sparse~6c1e6e8b9138ffe9:
Delete: xenolinux-sparse
Many files:
mvdir
Diffstat (limited to 'xenolinux-2.4.25-sparse/include/asm-xeno/bugs.h')
-rw-r--r-- | xenolinux-2.4.25-sparse/include/asm-xeno/bugs.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/xenolinux-2.4.25-sparse/include/asm-xeno/bugs.h b/xenolinux-2.4.25-sparse/include/asm-xeno/bugs.h new file mode 100644 index 0000000000..c46b6a0b15 --- /dev/null +++ b/xenolinux-2.4.25-sparse/include/asm-xeno/bugs.h @@ -0,0 +1,53 @@ +/* + * include/asm-i386/bugs.h + * + * Copyright (C) 1994 Linus Torvalds + * + * Cyrix stuff, June 1998 by: + * - Rafael R. Reilova (moved everything from head.S), + * <rreilova@ececs.uc.edu> + * - Channing Corn (tests & fixes), + * - Andrew D. Balsa (code cleanup). + * + * Pentium III FXSR, SSE support + * Gareth Hughes <gareth@valinux.com>, May 2000 + */ + +/* + * This is included by init/main.c to check for architecture-dependent bugs. + * + * Needs: + * void check_bugs(void); + */ + +#include <linux/config.h> +#include <asm/processor.h> +#include <asm/i387.h> +#include <asm/msr.h> + + +static void __init check_fpu(void) +{ + boot_cpu_data.fdiv_bug = 0; +} + +static void __init check_hlt(void) +{ + boot_cpu_data.hlt_works_ok = 1; +} + +static void __init check_bugs(void) +{ + extern void __init boot_init_fpu(void); + + identify_cpu(&boot_cpu_data); + boot_init_fpu(); +#ifndef CONFIG_SMP + printk("CPU: "); + print_cpu_info(&boot_cpu_data); +#endif + check_fpu(); + check_hlt(); + system_utsname.machine[1] = '0' + + (boot_cpu_data.x86 > 6 ? 6 : boot_cpu_data.x86); +} |