]> xenbits.xensource.com Git - people/pauldu/mini-os.git/commitdiff
mini-os: cleanup x86_32.S
authorJuergen Gross <jgross@suse.com>
Mon, 29 Aug 2016 06:17:20 +0000 (08:17 +0200)
committerWei Liu <wei.liu2@citrix.com>
Mon, 29 Aug 2016 10:11:40 +0000 (11:11 +0100)
arch/x86/x86_32.S has some superfluous instructions. Remove them.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
arch/x86/x86_32.S

index f70fc6571cc2fc0dfca12bb338d8cad09fe73c3a..3de00277fa8b15b0e6ea863c2a7b33e28d58b320 100644 (file)
@@ -111,7 +111,6 @@ do_exception:
     jmp ret_from_exception
     
 ret_from_exception:
-    movb CS(%esp),%cl
     addl $8,%esp
     RESTORE_ALL
 
@@ -140,11 +139,7 @@ ENTRY(hypervisor_callback)
         call do_hypervisor_callback
         add  $4,%esp
         movl HYPERVISOR_shared_info,%esi
-        xorl %eax,%eax
-        movb CS(%esp),%cl
-       test $2,%cl          # slow return to ring 2 or 3
-        jne  safesti
-safesti:movb $0,1(%esi)     # reenable event callbacks
+        movb $0,1(%esi)     # reenable event callbacks
 scrit:  /**** START OF CRITICAL REGION ****/
         testb $0xFF,(%esi)
         jnz  14f              # process more events if necessary...