From 3807b4840cfebb97bc8f7b2c2bb2fb2a45e1a7f5 Mon Sep 17 00:00:00 2001 From: David Xu Date: Thu, 31 Jul 2003 08:50:01 +0000 Subject: Fix some typos, correctly jump into UTS. --- lib/libkse/arch/amd64/amd64/enter_uts.S | 4 ++-- lib/libpthread/arch/amd64/amd64/enter_uts.S | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libkse/arch/amd64/amd64/enter_uts.S b/lib/libkse/arch/amd64/amd64/enter_uts.S index b36eb980cf9ca..b5938bfaa4baf 100644 --- a/lib/libkse/arch/amd64/amd64/enter_uts.S +++ b/lib/libkse/arch/amd64/amd64/enter_uts.S @@ -34,8 +34,8 @@ __FBSDID("$FreeBSD$"); */ ENTRY(_amd64_enter_uts) addq %rcx, %rdx /* get stack base */ - andq -15, %rdx /* align to 16 bytes */ + andq $-15, %rdx /* align to 16 bytes */ movq %rdx, %rsp /* switch to UTS stack */ movq %rdx, %rbp /* set frame */ - jmp *(%rsi) /* jump to UTS entry point */ + pushq %rsi ret diff --git a/lib/libpthread/arch/amd64/amd64/enter_uts.S b/lib/libpthread/arch/amd64/amd64/enter_uts.S index b36eb980cf9ca..b5938bfaa4baf 100644 --- a/lib/libpthread/arch/amd64/amd64/enter_uts.S +++ b/lib/libpthread/arch/amd64/amd64/enter_uts.S @@ -34,8 +34,8 @@ __FBSDID("$FreeBSD$"); */ ENTRY(_amd64_enter_uts) addq %rcx, %rdx /* get stack base */ - andq -15, %rdx /* align to 16 bytes */ + andq $-15, %rdx /* align to 16 bytes */ movq %rdx, %rsp /* switch to UTS stack */ movq %rdx, %rbp /* set frame */ - jmp *(%rsi) /* jump to UTS entry point */ + pushq %rsi ret -- cgit v1.3