From 9d08fbbb29a4a0866b4ff642893c7dd97575b56e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 22 Sep 2003 16:47:50 +0000 Subject: Update. 2003-09-22 Ulrich Drepper * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks like jumping over the lock prefix. --- nptl/ChangeLog | 5 +++++ nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nptl/ChangeLog b/nptl/ChangeLog index bbe26fa..cda72ea 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2003-09-22 Ulrich Drepper + + * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't play tricks + like jumping over the lock prefix. + 2003-09-21 Ulrich Drepper * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Completely revamp the diff --git a/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h b/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h index 35d1321..900c9cd 100644 --- a/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h +++ b/nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h @@ -184,7 +184,10 @@ extern int lll_unlock_wake_cb (int *__futex) attribute_hidden; 2 - taken by more users */ -#if defined NOT_IN_libc || defined UP +//#if defined NOT_IN_libc || defined UP +/* According to AMD it is not necessary to play tricks with avoiding the + lock instruction. */ +#if 1 # define lll_trylock(futex) lll_mutex_trylock (futex) # define lll_lock(futex) lll_mutex_lock (futex) # define lll_unlock(futex) lll_mutex_unlock (futex) -- cgit v1.1