Commit 47a55c50 authored by Rob Radez's avatar Rob Radez Committed by David S. Miller

[SPARC]: Do not use __builtin_trap() on sparc until gcc is fixed.

parent 32c48b6f
...@@ -2,14 +2,19 @@ ...@@ -2,14 +2,19 @@
#ifndef _SPARC_BUG_H #ifndef _SPARC_BUG_H
#define _SPARC_BUG_H #define _SPARC_BUG_H
/* Only use the inline asm until a gcc release that can handle __builtin_trap
* -rob 2003-06-25 */
#define __bug_trap() \
__asm__ __volatile__ ("t 0x5\n\t" : : )
#ifdef CONFIG_DEBUG_BUGVERBOSE #ifdef CONFIG_DEBUG_BUGVERBOSE
extern void do_BUG(const char *file, int line); extern void do_BUG(const char *file, int line);
#define BUG() do { \ #define BUG() do { \
do_BUG(__FILE__, __LINE__); \ do_BUG(__FILE__, __LINE__); \
__builtin_trap(); \ __bug_trap(); \
} while (0) } while (0)
#else #else
#define BUG() __builtin_trap() #define BUG() __bug_trap()
#endif #endif
#define BUG_ON(condition) do { \ #define BUG_ON(condition) do { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment