move die notifier handling to common code
[powerpc.git] / include / asm-i386 / semaphore.h
index e63b6a6..4e34a46 100644 (file)
@@ -126,7 +126,7 @@ static inline int down_interruptible(struct semaphore * sem)
                "lea %1,%%eax\n\t"
                "call __down_failed_interruptible\n"
                "2:"
-               :"=a" (result), "+m" (sem->count)
+               :"=&a" (result), "+m" (sem->count)
                :
                :"memory");
        return result;
@@ -148,7 +148,7 @@ static inline int down_trylock(struct semaphore * sem)
                "lea %1,%%eax\n\t"
                "call __down_failed_trylock\n\t"
                "2:\n"
-               :"=a" (result), "+m" (sem->count)
+               :"=&a" (result), "+m" (sem->count)
                :
                :"memory");
        return result;