projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4633436
)
Sigh, looks like you need '.set mips2' before you can access MIPS
author
Tom Lane
<
[email protected]
>
Mon, 29 Aug 2005 00:41:44 +0000
(
00:41
+0000)
committer
Tom Lane
<
[email protected]
>
Mon, 29 Aug 2005 00:41:44 +0000
(
00:41
+0000)
SYNC instruction.
src/include/storage/s_lock.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/storage/s_lock.h
b/src/include/storage/s_lock.h
index 459224a96bbaf5fb3c1d49e2f42c1b323e286708..640f044235a1aee278b3bfafd47ab1aa23cca2f9 100644
(file)
--- a/
src/include/storage/s_lock.h
+++ b/
src/include/storage/s_lock.h
@@
-475,8
+475,14
@@
tas(volatile slock_t *lock)
/* MIPS S_UNLOCK is almost standard but requires a "sync" instruction */
#define S_UNLOCK(lock) \
do \
-{\
- __asm__ __volatile__ (" sync \n"); \
+{ \
+ __asm__ __volatile__( \
+ " .set push \n" \
+ " .set mips2 \n" \
+ " .set noreorder \n" \
+ " .set nomacro \n" \
+ " sync \n" \
+ " .set pop "); \
*((volatile slock_t *) (lock)) = 0; \
} while (0)