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

[Xen-changelog] [xen-unstable] linux x86/64: Fix supervisor_mode_kernel test to read a single byte.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1177490803 -3600
# Node ID 23d1ef48e332e8143023c4f4820552a29225db3d
# Parent  8ca89a9e54a7973e36787878b1fddab436bf003f
linux x86/64: Fix supervisor_mode_kernel test to read a single byte.
Spotted by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 8ca89a9e54a7 -r 23d1ef48e332 
linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S
--- a/linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S       Wed Apr 25 
09:44:20 2007 +0100
+++ b/linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S       Wed Apr 25 
09:46:43 2007 +0100
@@ -160,7 +160,7 @@ NMI_MASK = 0x80000000
        testl $NMI_MASK,2*8(%rsp)
        jnz   2f
 
-       cmp   $0x00,(xen_features+XENFEAT_supervisor_mode_kernel)(%rip)
+       cmpb  $0,(xen_features+XENFEAT_supervisor_mode_kernel)(%rip)
        jne   1f
 
        /* Direct iret to kernel space. Correct CS and SS. */

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