Macro optimize, this increases context switch speed about 2% on my
athlon64 machine.
This commit is contained in:
parent
afc35161bc
commit
ab04048f48
@ -35,7 +35,7 @@ __FBSDID("$FreeBSD$");
|
||||
ENTRY(_amd64_enter_uts)
|
||||
addq %rcx, %rdx /* get stack base */
|
||||
andq $~0xf, %rdx /* align to 16 bytes */
|
||||
subq $8, %rdx /* simulate "call" alignment */
|
||||
movq %rdx, %rsp /* switch to UTS stack */
|
||||
movq %rdx, %rbp /* set frame */
|
||||
jmpq *%rsi
|
||||
callq *%rsi
|
||||
ret
|
||||
|
@ -35,7 +35,7 @@ __FBSDID("$FreeBSD$");
|
||||
ENTRY(_amd64_enter_uts)
|
||||
addq %rcx, %rdx /* get stack base */
|
||||
andq $~0xf, %rdx /* align to 16 bytes */
|
||||
subq $8, %rdx /* simulate "call" alignment */
|
||||
movq %rdx, %rsp /* switch to UTS stack */
|
||||
movq %rdx, %rbp /* set frame */
|
||||
jmpq *%rsi
|
||||
callq *%rsi
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user