ia64/xen-unstable

changeset 14927:23d1ef48e332

linux x86/64: Fix supervisor_mode_kernel test to read a single byte.
Spotted by Jan Beulich.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Apr 25 09:46:43 2007 +0100 (2007-04-25)
parents 8ca89a9e54a7
children 867965efcbd2
files linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S	Wed Apr 25 09:44:20 2007 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/x86_64/kernel/entry-xen.S	Wed Apr 25 09:46:43 2007 +0100
     1.3 @@ -160,7 +160,7 @@ NMI_MASK = 0x80000000
     1.4  	testl $NMI_MASK,2*8(%rsp)
     1.5  	jnz   2f
     1.6  
     1.7 -	cmp   $0x00,(xen_features+XENFEAT_supervisor_mode_kernel)(%rip)
     1.8 +	cmpb  $0,(xen_features+XENFEAT_supervisor_mode_kernel)(%rip)
     1.9  	jne   1f
    1.10  
    1.11  	/* Direct iret to kernel space. Correct CS and SS. */