diff options
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/Kconfig | 2 | ||||
-rw-r--r-- | arch/sparc/include/asm/bug.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 6bf594ace663..8767e45f1b2b 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig | |||
@@ -430,6 +430,8 @@ config SPARC_LEON | |||
430 | depends on SPARC32 | 430 | depends on SPARC32 |
431 | select USB_EHCI_BIG_ENDIAN_MMIO | 431 | select USB_EHCI_BIG_ENDIAN_MMIO |
432 | select USB_EHCI_BIG_ENDIAN_DESC | 432 | select USB_EHCI_BIG_ENDIAN_DESC |
433 | select USB_UHCI_BIG_ENDIAN_MMIO | ||
434 | select USB_UHCI_BIG_ENDIAN_DESC | ||
433 | ---help--- | 435 | ---help--- |
434 | If you say Y here if you are running on a SPARC-LEON processor. | 436 | If you say Y here if you are running on a SPARC-LEON processor. |
435 | The LEON processor is a synthesizable VHDL model of the | 437 | The LEON processor is a synthesizable VHDL model of the |
diff --git a/arch/sparc/include/asm/bug.h b/arch/sparc/include/asm/bug.h index 6f17528356b2..ea53e418f6c0 100644 --- a/arch/sparc/include/asm/bug.h +++ b/arch/sparc/include/asm/bug.h | |||
@@ -9,10 +9,14 @@ | |||
9 | void do_BUG(const char *file, int line); | 9 | void do_BUG(const char *file, int line); |
10 | #define BUG() do { \ | 10 | #define BUG() do { \ |
11 | do_BUG(__FILE__, __LINE__); \ | 11 | do_BUG(__FILE__, __LINE__); \ |
12 | barrier_before_unreachable(); \ | ||
12 | __builtin_trap(); \ | 13 | __builtin_trap(); \ |
13 | } while (0) | 14 | } while (0) |
14 | #else | 15 | #else |
15 | #define BUG() __builtin_trap() | 16 | #define BUG() do { \ |
17 | barrier_before_unreachable(); \ | ||
18 | __builtin_trap(); \ | ||
19 | } while (0) | ||
16 | #endif | 20 | #endif |
17 | 21 | ||
18 | #define HAVE_ARCH_BUG | 22 | #define HAVE_ARCH_BUG |