add fix for bad variable handling on PPC

This commit is contained in:
Pierre Ossman 2007-05-29 17:38:31 +00:00
parent af3dd00536
commit 449ad03167
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- libatomic_ops-1.2.orig/src/atomic_ops/sysdeps/gcc/powerpc.h 2007-05-29 19:29:52.000000000 +0200
+++ libatomic_ops-1.2/src/atomic_ops/sysdeps/gcc/powerpc.h 2007-05-29 19:30:48.000000000 +0200
@@ -72,7 +72,7 @@
/* registers. I always got "impossible constraint" when I */
/* tried the "y" constraint. */
__asm__ __volatile__ (
- "lwz %0,%1\n"
+ "lwz%U1%X1 %0,%1\n"
"cmpw cr7,%0,%0\n"
"bne- cr7,1f\n"
"1: isync\n"

View File

@ -4,7 +4,7 @@
Name: libatomic_ops
Version: 1.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Atomic memory update operations
Group: Development/Libraries
@ -13,6 +13,8 @@ URL: http://www.hpl.hp.com/research/linux/atomic_ops/
Source0: http://www.hpl.hp.com/research/linux/atomic_ops/download/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: libatomic_ops-1.2-ppclwzfix.patch
%description
Provides implementations for atomic memory update operations on a
number of architectures. This allows direct use of these in reasonably
@ -35,6 +37,7 @@ that involves minimum overhead across a variety of architectures.
%prep
%setup -q
%patch1 -p1
chmod a-x src/*.h
%build
@ -63,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue May 29 2007 Pierre Ossman <drzeus@drzeus.cx> 1.2-2
- Added fix for PPC AO_load_acquire.
* Fri Nov 10 2006 Pierre Ossman <drzeus@drzeus.cx> 1.2-1
- Update to 1.2.