Macro optimize, this increases context switch speed about 2% on my

athlon64 machine.
This commit is contained in:
davidxu 2004-07-31 01:53:21 +00:00
parent afc35161bc
commit ab04048f48
2 changed files with 4 additions and 4 deletions

View File

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

View File

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