Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29637
b: refs/heads/master
c: 6bf9f75
h: refs/heads/master
i:
  29635: f238191
v: v3
  • Loading branch information
Roman Zippel authored and Linus Torvalds committed Jun 25, 2006
1 parent e8bdace commit 474a889
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 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: 53617825ccf3ff8a71e6efcf3dcf58885ed6f3e5
refs/heads/master: 6bf9f755c3f30c81df17fce7d2f8dda11b9516a4
19 changes: 14 additions & 5 deletions trunk/include/asm-m68k/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,17 @@ typedef struct sigaltstack {

static inline void sigaddset(sigset_t *set, int _sig)
{
__asm__("bfset %0{%1,#1}" : "=m" (*set) : "id" ((_sig - 1) ^ 31)
asm ("bfset %0{%1,#1}"
: "+od" (*set)
: "id" ((_sig - 1) ^ 31)
: "cc");
}

static inline void sigdelset(sigset_t *set, int _sig)
{
__asm__("bfclr %0{%1,#1}" : "=m"(*set) : "id"((_sig - 1) ^ 31)
asm ("bfclr %0{%1,#1}"
: "+od" (*set)
: "id" ((_sig - 1) ^ 31)
: "cc");
}

Expand All @@ -175,8 +179,10 @@ static inline int __const_sigismember(sigset_t *set, int _sig)
static inline int __gen_sigismember(sigset_t *set, int _sig)
{
int ret;
__asm__("bfextu %1{%2,#1},%0"
: "=d"(ret) : "m"(*set), "id"((_sig-1) ^ 31));
asm ("bfextu %1{%2,#1},%0"
: "=d" (ret)
: "od" (*set), "id" ((_sig-1) ^ 31)
: "cc");
return ret;
}

Expand All @@ -187,7 +193,10 @@ static inline int __gen_sigismember(sigset_t *set, int _sig)

static inline int sigfindinword(unsigned long word)
{
__asm__("bfffo %1{#0,#0},%0" : "=d"(word) : "d"(word & -word) : "cc");
asm ("bfffo %1{#0,#0},%0"
: "=d" (word)
: "d" (word & -word)
: "cc");
return word ^ 31;
}

Expand Down

0 comments on commit 474a889

Please sign in to comment.