Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77165
b: refs/heads/master
c: 1292500
h: refs/heads/master
i:
  77163: 64e0922
v: v3
  • Loading branch information
Frederik Deweerdt authored and James Bottomley committed Jan 25, 2008
1 parent 76804b3 commit bf1f9f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93a38fa2dd83fcaf65b2327fff65e364472388f9
refs/heads/master: 1292500b159c00a8fece072b004f154e6fda9f48
13 changes: 10 additions & 3 deletions trunk/drivers/scsi/ultrastor.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,16 @@ static inline int find_and_clear_bit_16(unsigned long *field)
{
int rv;

if (*field == 0) panic("No free mscp");
asm("xorl %0,%0\n0:\tbsfw %1,%w0\n\tbtr %0,%1\n\tjnc 0b"
: "=&r" (rv), "=m" (*field) : "1" (*field));
if (*field == 0)
panic("No free mscp");

asm volatile (
"xorl %0,%0\n\t"
"0: bsfw %1,%w0\n\t"
"btr %0,%1\n\t"
"jnc 0b"
: "=&r" (rv), "=m" (*field) :);

return rv;
}

Expand Down

0 comments on commit bf1f9f0

Please sign in to comment.