[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Attached patch fixes FP initialization bug with x86-64 xenlinux.=20



ChangeSet 1.1678, 2005/06/06 09:14:16+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        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@xxxxxxxxx>



 arch/xen/x86_64/kernel/setup64.c    |    2 --
 include/asm-xen/asm-x86_64/system.h |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/setup64.c 
b/linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/setup64.c
--- a/linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/setup64.c  2005-06-06 
05:02:02 -04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/setup64.c  2005-06-06 
05:02:02 -04:00
@@ -336,9 +336,7 @@
        CD(0); CD(1); CD(2); CD(3); /* no db4 and db5 */; CD(6); CD(7);
 
 #undef CD
-#if 0
        fpu_init(); 
-#endif
 
 #ifdef CONFIG_NUMA
        numa_add_cpu(cpu);
diff -Nru a/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/system.h 
b/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/system.h
--- a/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/system.h       
2005-06-06 05:02:02 -04:00
+++ b/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/system.h       
2005-06-06 05:02:02 -04:00
@@ -147,12 +147,12 @@
 #define clts() (HYPERVISOR_fpu_taskswitch(0))
 static inline unsigned long read_cr0(void)
 { 
-        BUG();
+       return 0;
 } 
 
 static inline void write_cr0(unsigned long val) 
 { 
-        BUG();
+       /* Ignore, Linux tries to clear TS and EM */
 } 
 
 static inline unsigned long read_cr3(void)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.