ia64/xen-unstable

view linux-2.4.29-xen-sparse/include/asm-xen/bugs.h @ 3887:4385894c52ae

bitkeeper revision 1.1230.2.4 (421a95cepOZORm0EbZfqBeZ6PZ8MwA)

Merge freefall.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xen-unstable.bk
into freefall.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
author iap10@freefall.cl.cam.ac.uk
date Tue Feb 22 02:15:42 2005 +0000 (2005-02-22)
parents 0a4b76b6b5a0
children
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 }