]> Zhao Yanbai Git Server - minix.git/commitdiff
remove unused PSW restore code 00/2900/1
authorBen Gras <ben@minix3.org>
Mon, 24 Nov 2014 11:00:27 +0000 (11:00 +0000)
committerBen Gras <ben@minix3.org>
Tue, 25 Nov 2014 09:51:01 +0000 (10:51 +0100)
. now done in-kernel so IOPL gets restored

Change-Id: I9905d2844a4715004054a788613ff7efd02a227d

minix/kernel/arch/i386/usermapped_glo_ipc.S

index a5a1cde1dabaf357f681ac642b236aaee4c6b90f..88e45578c14f6cc5c5ec7071ab685ab3f7be2376 100644 (file)
@@ -43,8 +43,6 @@ ENTRY(usermapped_ ## name ## _sysenter)                                       ;\
        SETARGS                 /* call-specific register setup */      ;\
        sysenter                /* disappear into kernel */             ;\
 0:                                                                     ;\
-       push    %edi            /* kernel has desired PSW in %edi */    ;\
-       popf                    /* set PSW kernel wants us to have */   ;\
        mov     %ebx, %ecx      /* return w. state mangled; save %ebx */;\
        pop     %edi                                                    ;\
        pop     %esi                                                    ;\
@@ -69,8 +67,6 @@ ENTRY(usermapped_ ## name ## _syscall)                                        ;\
        SETARGS                 /* call-specific register setup */      ;\
        movl    %ecx, %edx      /* %ecx is clobbered by SYSCALL */      ;\
        syscall                 /* disappear into kernel */             ;\
-       push    %edi            /* kernel has desired PSW in %edi */    ;\
-       popf                    /* set PSW kernel wants us to have */   ;\
        mov     %ebx, %ecx      /* return w. state mangled; save %ebx */;\
        pop     %edi                                                    ;\
        pop     %esi                                                    ;\