diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-07-04 00:23:09 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-07-24 21:20:41 -0400 |
commit | f3c23a28ace0a42ea06b5860b3bd25f71fc14c89 (patch) | |
tree | ddd57fe63f1101f5e736493d73c0965745748ee2 /arch/m68k/include | |
parent | 7c946199cd5eab2917bb053ca6fdc6997d27aa7a (diff) |
m68k: use CPU_HAS_NO_BITFIELDS for signal functions
When reworking bitops.h to be clean for all processor types we introduced
a CONFIG_CPU_HAS_NO_BITFIELDS define to signal whether this processor type
supported the bit field instructions. The ARCH_SIG_BITOPS functions for
m68k use these instruction types. We should base the use of these functions
(or the generic versions) on the CONFIG_CPU_HAS_NO_BITFIELDS define.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r-- | arch/m68k/include/asm/signal.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/m68k/include/asm/signal.h b/arch/m68k/include/asm/signal.h index 5bc09c787a11..60e88660169c 100644 --- a/arch/m68k/include/asm/signal.h +++ b/arch/m68k/include/asm/signal.h | |||
@@ -150,7 +150,7 @@ typedef struct sigaltstack { | |||
150 | #ifdef __KERNEL__ | 150 | #ifdef __KERNEL__ |
151 | #include <asm/sigcontext.h> | 151 | #include <asm/sigcontext.h> |
152 | 152 | ||
153 | #ifndef __uClinux__ | 153 | #ifndef CONFIG_CPU_HAS_NO_BITFIELDS |
154 | #define __HAVE_ARCH_SIG_BITOPS | 154 | #define __HAVE_ARCH_SIG_BITOPS |
155 | 155 | ||
156 | static inline void sigaddset(sigset_t *set, int _sig) | 156 | static inline void sigaddset(sigset_t *set, int _sig) |
@@ -199,15 +199,14 @@ static inline int sigfindinword(unsigned long word) | |||
199 | return word ^ 31; | 199 | return word ^ 31; |
200 | } | 200 | } |
201 | 201 | ||
202 | struct pt_regs; | 202 | #endif /* !CONFIG_CPU_HAS_NO_BITFIELDS */ |
203 | extern void ptrace_signal_deliver(struct pt_regs *regs, void *cookie); | ||
204 | 203 | ||
205 | #else | 204 | #ifdef __uClinux__ |
206 | |||
207 | #undef __HAVE_ARCH_SIG_BITOPS | ||
208 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) | 205 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) |
209 | 206 | #else | |
207 | struct pt_regs; | ||
208 | extern void ptrace_signal_deliver(struct pt_regs *regs, void *cookie); | ||
210 | #endif /* __uClinux__ */ | 209 | #endif /* __uClinux__ */ |
211 | #endif /* __KERNEL__ */ | ||
212 | 210 | ||
211 | #endif /* __KERNEL__ */ | ||
213 | #endif /* _M68K_SIGNAL_H */ | 212 | #endif /* _M68K_SIGNAL_H */ |