direct-io.hg

view linux-2.4.30-xen-sparse/include/asm-xen/bugs.h @ 5517:10e9028c8e3d

bitkeeper revision 1.1718.1.10 (42b7b19aqOS_1M8I4pIOFjiTPYWV-g)

Merge bk://xenbits.xensource.com/xen-unstable.bk
into spot.cl.cam.ac.uk:C:/Documents and Settings/iap10/xen-unstable.bk
author iap10@spot.cl.cam.ac.uk
date Tue Jun 21 06:20:10 2005 +0000 (2005-06-21)
parents 85fcf3b1b7a5
children 56a63f9f378f
line source
1 /*
2 * include/asm-i386/bugs.h
3 *
4 * Copyright (C) 1994 Linus Torvalds
5 *
6 * Cyrix stuff, June 1998 by:
7 * - Rafael R. Reilova (moved everything from head.S),
8 * <rreilova@ececs.uc.edu>
9 * - Channing Corn (tests & fixes),
10 * - Andrew D. Balsa (code cleanup).
11 *
12 * Pentium III FXSR, SSE support
13 * Gareth Hughes <gareth@valinux.com>, May 2000
14 */
16 /*
17 * This is included by init/main.c to check for architecture-dependent bugs.
18 *
19 * Needs:
20 * void check_bugs(void);
21 */
23 #include <linux/config.h>
24 #include <asm/processor.h>
25 #include <asm/i387.h>
26 #include <asm/msr.h>
29 static void __init check_fpu(void)
30 {
31 boot_cpu_data.fdiv_bug = 0;
32 }
34 static void __init check_hlt(void)
35 {
36 boot_cpu_data.hlt_works_ok = 1;
37 }
39 static void __init check_bugs(void)
40 {
41 extern void __init boot_init_fpu(void);
43 identify_cpu(&boot_cpu_data);
44 boot_init_fpu();
45 #ifndef CONFIG_SMP
46 printk("CPU: ");
47 print_cpu_info(&boot_cpu_data);
48 #endif
49 check_fpu();
50 check_hlt();
51 system_utsname.machine[1] = '0' +
52 (boot_cpu_data.x86 > 6 ? 6 : boot_cpu_data.x86);
53 }