Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173490
b: refs/heads/master
c: 626ac8e
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Nov 12, 2009
1 parent 2daab8a commit 18f8e78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 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: e9c58fc57b17bfa75c256fb4f45ce22de6626858
refs/heads/master: 626ac8e1388ac128495a3b7188e9d86464de6c5b
4 changes: 0 additions & 4 deletions trunk/arch/sh/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ BUILD_TRAP_HANDLER(fpu_error);
BUILD_TRAP_HANDLER(fpu_state_restore);
BUILD_TRAP_HANDLER(nmi);

#ifdef CONFIG_BUG
extern void handle_BUG(struct pt_regs *);
#endif

#define arch_align_stack(x) (x)

struct mem_access {
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/sh/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include <asm/unwinder.h>
#include <asm/system.h>

#ifdef CONFIG_BUG
void handle_BUG(struct pt_regs *regs)
#ifdef CONFIG_GENERIC_BUG
static void handle_BUG(struct pt_regs *regs)
{
const struct bug_entry *bug;
unsigned long bugaddr = regs->pc;
Expand Down Expand Up @@ -81,7 +81,7 @@ BUILD_TRAP_HANDLER(bug)
SIGTRAP) == NOTIFY_STOP)
return;

#ifdef CONFIG_BUG
#ifdef CONFIG_GENERIC_BUG
if (__kernel_text_address(instruction_pointer(regs))) {
insn_size_t insn = *(insn_size_t *)instruction_pointer(regs);
if (insn == TRAPA_BUG_OPCODE)
Expand Down

0 comments on commit 18f8e78

Please sign in to comment.