Eliminate two pushl by using call instruction directly, this really

helps branch predict a lot for INTEL P4.

Approved by: re (scottl)
This commit is contained in:
davidxu 2003-11-29 14:25:43 +00:00
parent 2cc3179bff
commit 639818d0f3
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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