From ab04048f4891089dc38d534cff10580e0f9f0088 Mon Sep 17 00:00:00 2001 From: davidxu Date: Sat, 31 Jul 2004 01:53:21 +0000 Subject: Macro optimize, this increases context switch speed about 2% on my athlon64 machine. --- lib/libpthread/arch/amd64/amd64/enter_uts.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libpthread') 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 -- cgit v1.1