From 639818d0f3eaeb07b96122b718945190ab1814ec Mon Sep 17 00:00:00 2001 From: davidxu Date: Sat, 29 Nov 2003 14:25:43 +0000 Subject: Eliminate two pushl by using call instruction directly, this really helps branch predict a lot for INTEL P4. Approved by: re (scottl) --- lib/libpthread/arch/i386/i386/thr_enter_uts.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libpthread') diff --git a/lib/libpthread/arch/i386/i386/thr_enter_uts.S b/lib/libpthread/arch/i386/i386/thr_enter_uts.S index 526fc9e..bf6df8f 100644 --- a/lib/libpthread/arch/i386/i386/thr_enter_uts.S +++ b/lib/libpthread/arch/i386/i386/thr_enter_uts.S @@ -40,6 +40,5 @@ ENTRY(_i386_enter_uts) addl 16(%edx), %eax /* add length */ movl %eax, %esp /* switch to uts stack */ pushl 4(%edx) /* push the address of the mailbox */ - pushl 8(%edx) /* .. the uts can return to itself */ - pushl 8(%edx) /* .. the uts can return to itself */ + call *8(%edx) ret -- cgit v1.1