ia64/xen-unstable

changeset 5329:c380b155f68e

bitkeeper revision 1.1678 (42a405d8raiThtAq9NRXuuFg6ur1qA)

Attached patch fixes FP initialization bug with x86-64 xenlinux.=20

With this patch, # of testcase failures with LTP is < 5 (out of 800),
almost same results as the native x86-64 Linux. The other two patches
for LTP are coming soon; with these, all the testcases will pass (except
the ones that fail on the native x86-64 Linux).

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jun 06 08:14:16 2005 +0000 (2005-06-06)
parents 0fd1b16571fb
children c2f094c21ddf
files linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/setup64.c linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/system.h
line diff
     1.1 --- a/linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/setup64.c	Sun Jun 05 14:56:51 2005 +0000
     1.2 +++ b/linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/setup64.c	Mon Jun 06 08:14:16 2005 +0000
     1.3 @@ -336,9 +336,7 @@ void __init cpu_init (void)
     1.4  	CD(0); CD(1); CD(2); CD(3); /* no db4 and db5 */; CD(6); CD(7);
     1.5  
     1.6  #undef CD
     1.7 -#if 0
     1.8  	fpu_init(); 
     1.9 -#endif
    1.10  
    1.11  #ifdef CONFIG_NUMA
    1.12  	numa_add_cpu(cpu);
     2.1 --- a/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/system.h	Sun Jun 05 14:56:51 2005 +0000
     2.2 +++ b/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/system.h	Mon Jun 06 08:14:16 2005 +0000
     2.3 @@ -147,12 +147,12 @@ struct alt_instr {
     2.4  #define clts() (HYPERVISOR_fpu_taskswitch(0))
     2.5  static inline unsigned long read_cr0(void)
     2.6  { 
     2.7 -        BUG();
     2.8 +	return 0;
     2.9  } 
    2.10  
    2.11  static inline void write_cr0(unsigned long val) 
    2.12  { 
    2.13 -        BUG();
    2.14 +	/* Ignore, Linux tries to clear TS and EM */
    2.15  } 
    2.16  
    2.17  static inline unsigned long read_cr3(void)