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:
parent
170422c2ef
commit
508f442784
@ -40,6 +40,5 @@ ENTRY(_i386_enter_uts)
|
|||||||
addl 16(%edx), %eax /* add length */
|
addl 16(%edx), %eax /* add length */
|
||||||
movl %eax, %esp /* switch to uts stack */
|
movl %eax, %esp /* switch to uts stack */
|
||||||
pushl 4(%edx) /* push the address of the mailbox */
|
pushl 4(%edx) /* push the address of the mailbox */
|
||||||
pushl 8(%edx) /* .. the uts can return to itself */
|
call *8(%edx)
|
||||||
pushl 8(%edx) /* .. the uts can return to itself */
|
|
||||||
ret
|
ret
|
||||||
|
@ -40,6 +40,5 @@ ENTRY(_i386_enter_uts)
|
|||||||
addl 16(%edx), %eax /* add length */
|
addl 16(%edx), %eax /* add length */
|
||||||
movl %eax, %esp /* switch to uts stack */
|
movl %eax, %esp /* switch to uts stack */
|
||||||
pushl 4(%edx) /* push the address of the mailbox */
|
pushl 4(%edx) /* push the address of the mailbox */
|
||||||
pushl 8(%edx) /* .. the uts can return to itself */
|
call *8(%edx)
|
||||||
pushl 8(%edx) /* .. the uts can return to itself */
|
|
||||||
ret
|
ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user