diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/ultrastor.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/scsi/ultrastor.c b/drivers/scsi/ultrastor.c index 1d3b02976d74..75eca6b22db5 100644 --- a/drivers/scsi/ultrastor.c +++ b/drivers/scsi/ultrastor.c | |||
@@ -298,9 +298,16 @@ static inline int find_and_clear_bit_16(unsigned long *field) | |||
298 | { | 298 | { |
299 | int rv; | 299 | int rv; |
300 | 300 | ||
301 | if (*field == 0) panic("No free mscp"); | 301 | if (*field == 0) |
302 | asm("xorl %0,%0\n0:\tbsfw %1,%w0\n\tbtr %0,%1\n\tjnc 0b" | 302 | panic("No free mscp"); |
303 | : "=&r" (rv), "=m" (*field) : "1" (*field)); | 303 | |
304 | asm volatile ( | ||
305 | "xorl %0,%0\n\t" | ||
306 | "0: bsfw %1,%w0\n\t" | ||
307 | "btr %0,%1\n\t" | ||
308 | "jnc 0b" | ||
309 | : "=&r" (rv), "=m" (*field) :); | ||
310 | |||
304 | return rv; | 311 | return rv; |
305 | } | 312 | } |
306 | 313 | ||