WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Attached patch fixes FP initialization bug with x86-64 x

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Attached patch fixes FP initialization bug with x86-64 xenlinux.=20
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Mon, 06 Jun 2005 08:14:16 +0000
Delivery-date: Mon, 06 Jun 2005 09:01:10 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Attached patch fixes FP initialization bug with x86-64 xenlinux.=20, BitKeeper Bot <=