From 3a9e392b3a9858c2685108f8d9e58b052e0d01ef Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 24 Nov 2014 11:00:27 +0000 Subject: [PATCH] remove unused PSW restore code . now done in-kernel so IOPL gets restored Change-Id: I9905d2844a4715004054a788613ff7efd02a227d --- minix/kernel/arch/i386/usermapped_glo_ipc.S | 4 ---- 1 file changed, 4 deletions(-) diff --git a/minix/kernel/arch/i386/usermapped_glo_ipc.S b/minix/kernel/arch/i386/usermapped_glo_ipc.S index a5a1cde1d..88e45578c 100644 --- a/minix/kernel/arch/i386/usermapped_glo_ipc.S +++ b/minix/kernel/arch/i386/usermapped_glo_ipc.S @@ -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 ;\