diff options
Diffstat (limited to 'include/asm-i386/semaphore.h')
-rw-r--r-- | include/asm-i386/semaphore.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-i386/semaphore.h b/include/asm-i386/semaphore.h index e63b6a68f04c..4e34a468c383 100644 --- a/include/asm-i386/semaphore.h +++ b/include/asm-i386/semaphore.h | |||
@@ -126,7 +126,7 @@ static inline int down_interruptible(struct semaphore * sem) | |||
126 | "lea %1,%%eax\n\t" | 126 | "lea %1,%%eax\n\t" |
127 | "call __down_failed_interruptible\n" | 127 | "call __down_failed_interruptible\n" |
128 | "2:" | 128 | "2:" |
129 | :"=a" (result), "+m" (sem->count) | 129 | :"=&a" (result), "+m" (sem->count) |
130 | : | 130 | : |
131 | :"memory"); | 131 | :"memory"); |
132 | return result; | 132 | return result; |
@@ -148,7 +148,7 @@ static inline int down_trylock(struct semaphore * sem) | |||
148 | "lea %1,%%eax\n\t" | 148 | "lea %1,%%eax\n\t" |
149 | "call __down_failed_trylock\n\t" | 149 | "call __down_failed_trylock\n\t" |
150 | "2:\n" | 150 | "2:\n" |
151 | :"=a" (result), "+m" (sem->count) | 151 | :"=&a" (result), "+m" (sem->count) |
152 | : | 152 | : |
153 | :"memory"); | 153 | :"memory"); |
154 | return result; | 154 | return result; |