]> xenbits.xensource.com Git - people/pauldu/mini-os.git/commitdiff
x86/minios: remove more vestigial remnants of SUPERVISOR_MODE_KERNEL
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 19 Jan 2015 11:17:24 +0000 (12:17 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 19 Jan 2015 11:17:24 +0000 (12:17 +0100)
MiniOS has never advertised support for supervisor_mode_kernel, and the
feature was only ever implemented for 32bit Xen.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
arch/x86/x86_64.S

index df3469ef4319a75cc9d4c36b51f4097897c015f2..72921b143a79baa7010c7244ae85285aa47ef3fb 100644 (file)
@@ -125,13 +125,10 @@ KERNEL_CS_MASK = 0xfc
        testl $NMI_MASK,2*8(%rsp)
        jnz   2f
 
-       testb $1,(xen_features+XENFEAT_supervisor_mode_kernel)
-       jnz   1f
-
        /* Direct iret to kernel space. Correct CS and SS. */
        orb   $3,1*8(%rsp)
        orb   $3,4*8(%rsp)
-1:     iretq
+       iretq
 
 2:     /* Slow iret via hypervisor. */
        andl  $~NMI_MASK, 16(%rsp)