Skip to content

Commit

Permalink
m68k: merge the mmu and non-mmu traps.c files
Browse files Browse the repository at this point in the history
The code for handling traps in the non-mmu case is a subset of the mmu
enabled case. Merge the non-mmu traps_no.c code back to a single traps.c.
There is actually no code mmu specific here at all, and the processor
specific code (for the more complex 68020/68030/68040/68060) is already
proplerly conditionaly used.

The format of console exception dump is a little different, but I don't
think will cause any one problems, it is purely for debug purposes.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Greg Ungerer committed Oct 18, 2011
1 parent bc4f4ac commit 144077e
Show file tree
Hide file tree
Showing 4 changed files with 1,111 additions and 1,456 deletions.
6 changes: 6 additions & 0 deletions arch/m68k/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ do { \
wrusp(_usp); \
} while(0)

static inline int handle_kernel_fault(struct pt_regs *regs)
{
/* Any fault in kernel is fatal on non-mmu */
return 0;
}

#endif

/* Forward declaration, a strange C thing */
Expand Down
Loading

0 comments on commit 144077e

Please sign in to comment.