ia64/xen-unstable

diff xen/arch/ia64/linux-xen/setup.c @ 9770:ced37bea0647

[IA64] FPH enabling + cleanup

Move contents of switch_to macro from xensystem.h to context_switch function.
Initialize FPU on all processors. FPH is always enabled in Xen.
Speed up context-switch (a little bit!) by not enabling/disabling FPH.
Cleanup (unused function/variablesi/fields, debug printf...)
vmx_ia64_switch_to removed (was unused).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Tue Apr 25 22:35:41 2006 -0600 (2006-04-25)
parents bdb08c9ef3d1
children ddcd9c267612
line diff
     1.1 --- a/xen/arch/ia64/linux-xen/setup.c	Tue Apr 25 22:32:14 2006 -0600
     1.2 +++ b/xen/arch/ia64/linux-xen/setup.c	Tue Apr 25 22:35:41 2006 -0600
     1.3 @@ -384,7 +384,9 @@ setup_arch (char **cmdline_p)
     1.4  {
     1.5  	unw_init();
     1.6  
     1.7 +#ifndef XEN
     1.8  	ia64_patch_vtop((u64) __start___vtop_patchlist, (u64) __end___vtop_patchlist);
     1.9 +#endif
    1.10  
    1.11  	*cmdline_p = __va(ia64_boot_param->command_line);
    1.12  #ifndef XEN
    1.13 @@ -870,6 +872,11 @@ cpu_init (void)
    1.14  #endif
    1.15  		BUG();
    1.16  
    1.17 +#ifdef XEN
    1.18 +	ia64_fph_enable();
    1.19 +	__ia64_init_fpu();
    1.20 +#endif
    1.21 +
    1.22  	ia64_mmu_init(ia64_imva(cpu_data));
    1.23  	ia64_mca_cpu_init(ia64_imva(cpu_data));
    1.24  
    1.25 @@ -931,9 +938,11 @@ cpu_init (void)
    1.26  #endif
    1.27  }
    1.28  
    1.29 +#ifndef XEN
    1.30  void
    1.31  check_bugs (void)
    1.32  {
    1.33  	ia64_patch_mckinley_e9((unsigned long) __start___mckinley_e9_bundles,
    1.34  			       (unsigned long) __end___mckinley_e9_bundles);
    1.35  }
    1.36 +#endif