Skip to content

Commit

Permalink
m68k: merge the mmu and non-mmu versions of bug.h
Browse files Browse the repository at this point in the history
Trivial merge of the mmu and non-mmu versions of bug.h

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
  • Loading branch information
Greg Ungerer committed Mar 24, 2009
1 parent b0ffbf2 commit dbc367e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 36 deletions.
31 changes: 28 additions & 3 deletions arch/m68k/include/asm/bug.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
#ifdef __uClinux__
#include "bug_no.h"
#ifndef _M68K_BUG_H
#define _M68K_BUG_H

#ifdef CONFIG_MMU
#ifdef CONFIG_BUG
#ifdef CONFIG_DEBUG_BUGVERBOSE
#ifndef CONFIG_SUN3
#define BUG() do { \
printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
__builtin_trap(); \
} while (0)
#else
#include "bug_mm.h"
#define BUG() do { \
printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
panic("BUG!"); \
} while (0)
#endif
#else
#define BUG() do { \
__builtin_trap(); \
} while (0)
#endif

#define HAVE_ARCH_BUG
#endif
#endif /* CONFIG_MMU */

#include <asm-generic/bug.h>

#endif
29 changes: 0 additions & 29 deletions arch/m68k/include/asm/bug_mm.h

This file was deleted.

4 changes: 0 additions & 4 deletions arch/m68k/include/asm/bug_no.h

This file was deleted.

0 comments on commit dbc367e

Please sign in to comment.