diff options
author | davidxu <davidxu@FreeBSD.org> | 2004-07-31 01:53:21 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2004-07-31 01:53:21 +0000 |
commit | ab04048f4891089dc38d534cff10580e0f9f0088 (patch) | |
tree | 38985cff8e6211a6d8aea0c0003cc65a5d5e38dd /lib/libpthread | |
parent | afc35161bcb1e2455be328ce7647ee9ccb1a2b3a (diff) | |
download | FreeBSD-src-ab04048f4891089dc38d534cff10580e0f9f0088.zip FreeBSD-src-ab04048f4891089dc38d534cff10580e0f9f0088.tar.gz |
Macro optimize, this increases context switch speed about 2% on my
athlon64 machine.
Diffstat (limited to 'lib/libpthread')
-rw-r--r-- | lib/libpthread/arch/amd64/amd64/enter_uts.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/arch/amd64/amd64/enter_uts.S b/lib/libpthread/arch/amd64/amd64/enter_uts.S index 7f9a88d..fb0df87 100644 --- a/lib/libpthread/arch/amd64/amd64/enter_uts.S +++ b/lib/libpthread/arch/amd64/amd64/enter_uts.S @@ -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 |