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

[Xen-changelog] Add a commented-out sanity check for lazy fpu switching.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 07aa5213d8119f9889f49cd79cc9a2a3ae787881
# Parent  eee0489b3a174dd53e56e975bc44c46933697215
Add a commented-out sanity check for lazy fpu switching.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r eee0489b3a17 -r 07aa5213d811 
linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c
--- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c       Sat Oct 29 
08:51:35 2005
+++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c       Sun Oct 30 
08:39:55 2005
@@ -483,6 +483,9 @@
                mcl->args[0] = 1;
                mcl++;
        }
+#if 0 /* lazy fpu sanity check */
+       else BUG_ON(!(read_cr0() & 8));
+#endif
 
        /*
         * Reload esp0, LDT and the page table pointer:

_______________________________________________
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®.