diff options
author | Martin Blapp <mbr@FreeBSD.org> | 2002-07-31 10:16:01 +0000 |
---|---|---|
committer | Martin Blapp <mbr@FreeBSD.org> | 2002-07-31 10:16:01 +0000 |
commit | de267d2bcbe7db797553ad5237766fc01d646ff1 (patch) | |
tree | 2cee1b11fa7da8858c9ffd8867a939bf8f7af0e8 /editors/openoffice-1.0/files | |
parent | Add patch needed by debug compile build. (diff) |
Fix locking problems.
Submitted by: kan
Notes
Notes:
svn path=/head/; revision=63792
Diffstat (limited to 'editors/openoffice-1.0/files')
-rw-r--r-- | editors/openoffice-1.0/files/patch-sal+osl+unx+interlck.c | 30 | ||||
-rw-r--r-- | editors/openoffice-1.0/files/patch-sal::osl::unx::interlck.c | 30 |
2 files changed, 60 insertions, 0 deletions
diff --git a/editors/openoffice-1.0/files/patch-sal+osl+unx+interlck.c b/editors/openoffice-1.0/files/patch-sal+osl+unx+interlck.c new file mode 100644 index 000000000000..60ea1f414d1a --- /dev/null +++ b/editors/openoffice-1.0/files/patch-sal+osl+unx+interlck.c @@ -0,0 +1,30 @@ +--- ../sal/osl/unx/interlck.c.orig Mon Jul 22 17:51:34 2002 ++++ ../sal/osl/unx/interlck.c Mon Jul 22 18:03:42 2002 +@@ -81,10 +81,10 @@ + __asm__ __volatile__ ( + "movl $1, %0\n\t" + "lock\n\t" +- "xadd %0, %2\n\t" ++ "xadd %0, %1\n\t" + "incl %0" +- : "=a" (nCount), "=m" (*pCount) +- : "m" (*pCount) ++ : "=&a" (nCount), "+m" (*pCount) ++ : + : "memory"); + } + +@@ -95,10 +95,10 @@ + __asm__ __volatile__ ( + "movl $-1, %0\n\t" + "lock\n\t" +- "xadd %0, %2\n\t" ++ "xadd %0, %1\n\t" + "decl %0" +- : "=a" (nCount), "=m" (*pCount) +- : "m" (*pCount) ++ : "=&a" (nCount), "+m" (*pCount) ++ : + : "memory"); + } + diff --git a/editors/openoffice-1.0/files/patch-sal::osl::unx::interlck.c b/editors/openoffice-1.0/files/patch-sal::osl::unx::interlck.c new file mode 100644 index 000000000000..60ea1f414d1a --- /dev/null +++ b/editors/openoffice-1.0/files/patch-sal::osl::unx::interlck.c @@ -0,0 +1,30 @@ +--- ../sal/osl/unx/interlck.c.orig Mon Jul 22 17:51:34 2002 ++++ ../sal/osl/unx/interlck.c Mon Jul 22 18:03:42 2002 +@@ -81,10 +81,10 @@ + __asm__ __volatile__ ( + "movl $1, %0\n\t" + "lock\n\t" +- "xadd %0, %2\n\t" ++ "xadd %0, %1\n\t" + "incl %0" +- : "=a" (nCount), "=m" (*pCount) +- : "m" (*pCount) ++ : "=&a" (nCount), "+m" (*pCount) ++ : + : "memory"); + } + +@@ -95,10 +95,10 @@ + __asm__ __volatile__ ( + "movl $-1, %0\n\t" + "lock\n\t" +- "xadd %0, %2\n\t" ++ "xadd %0, %1\n\t" + "decl %0" +- : "=a" (nCount), "=m" (*pCount) +- : "m" (*pCount) ++ : "=&a" (nCount), "+m" (*pCount) ++ : + : "memory"); + } + |