Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
mysql5
>
mysql-5.0.62-enterprise
> mysql-5.0.26-ppc.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mysql-5.0.26-ppc.patch of Package mysql-5.0.62-enterprise
--- bdb/dbinc/mutex.h +++ bdb/dbinc/mutex.h @@ -539,19 +539,24 @@ int __r; \ tsl_t *__l = (tsl); \ asm volatile (" \ + lwsync; \ 0: \ lwarx %0,0,%1; \ cmpwi %0,0; \ bne 1f; \ stwcx. %2,0,%1; \ bne- 0b; \ + isync; \ 1:" \ : "=&r" (__r) \ : "r" (__l), "r" (__one)); \ !(__r & 1); \ }) #endif -#define MUTEX_UNSET(tsl) (*(tsl) = 0) +#define MUTEX_UNSET(tsl) ({ \ + __asm__ __volatile__ ("lwsync #MUTEX_UNSET\n":::"memory"); \ + *(tsl) = 0; \ +}) #define MUTEX_INIT(tsl) MUTEX_UNSET(tsl) #endif #endif