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:
David Xu 2003-11-29 14:25:43 +00:00
parent 170422c2ef
commit 508f442784
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123049
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