Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259075
b: refs/heads/master
c: 35de674
h: refs/heads/master
i:
  259073: 7e3c231
  259071: 7ea23c9
v: v3
  • Loading branch information
Greg Ungerer committed Jul 25, 2011
1 parent 5a6a6a2 commit 943c6dc
Show file tree
Hide file tree
Showing 2 changed files with 4 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: f3c23a28ace0a42ea06b5860b3bd25f71fc14c89
refs/heads/master: 35de674982aa13de98cf470c640895164017563e
6 changes: 3 additions & 3 deletions trunk/arch/m68k/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,18 @@ static inline int atomic_add_negative(int i, atomic_t *v)
char c;
__asm__ __volatile__("addl %2,%1; smi %0"
: "=d" (c), "+m" (*v)
: "id" (i));
: ASM_DI (i));
return c != 0;
}

static inline void atomic_clear_mask(unsigned long mask, unsigned long *v)
{
__asm__ __volatile__("andl %1,%0" : "+m" (*v) : "id" (~(mask)));
__asm__ __volatile__("andl %1,%0" : "+m" (*v) : ASM_DI (~(mask)));
}

static inline void atomic_set_mask(unsigned long mask, unsigned long *v)
{
__asm__ __volatile__("orl %1,%0" : "+m" (*v) : "id" (mask));
__asm__ __volatile__("orl %1,%0" : "+m" (*v) : ASM_DI (mask));
}

static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
Expand Down

0 comments on commit 943c6dc

Please sign in to comment.