direct-io.hg

view linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/setup_arch_post.h @ 9162:13bbfced7b35

Fix 64-bit Linux build.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Mar 08 11:11:53 2006 +0100 (2006-03-08)
parents 4293d6760cef
children 5d3c2cb42ec4
line source
1 /**
2 * machine_specific_* - Hooks for machine specific setup.
3 *
4 * Description:
5 * This is included late in kernel/setup.c so that it can make
6 * use of all of the static functions.
7 **/
9 void __cpuinit machine_specific_modify_cpu_capabilities(struct cpuinfo_x86 *c)
10 {
11 clear_bit(X86_FEATURE_VME, c->x86_capability);
12 clear_bit(X86_FEATURE_DE, c->x86_capability);
13 clear_bit(X86_FEATURE_PSE, c->x86_capability);
14 clear_bit(X86_FEATURE_PGE, c->x86_capability);
15 clear_bit(X86_FEATURE_SEP, c->x86_capability);
16 if (!(xen_start_info->flags & SIF_PRIVILEGED))
17 clear_bit(X86_FEATURE_MTRR, c->x86_capability);
18 }
20 extern void hypervisor_callback(void);
21 extern void failsafe_callback(void);
22 extern void nmi(void);
24 static void __init machine_specific_arch_setup(void)
25 {
26 #ifdef CONFIG_X86_LOCAL_APIC
27 struct xennmi_callback cb;
28 #endif
30 HYPERVISOR_set_callbacks(
31 (unsigned long) hypervisor_callback,
32 (unsigned long) failsafe_callback,
33 (unsigned long) system_call);
35 #ifdef CONFIG_X86_LOCAL_APIC
36 cb.handler_address = (unsigned long)&nmi;
37 HYPERVISOR_nmi_op(XENNMI_register_callback, &cb);
38 #endif
40 machine_specific_modify_cpu_capabilities(&boot_cpu_data);
41 }