[PATCH 0/4] MIPS: support return from exception; allow user to pass incorrect address to md command

Antony Pavlov antonynpavlov at gmail.com
Mon Nov 9 23:27:12 PST 2015


This patchseries adds return from exception for MIPS, so the 'md' command
incorrect memory accesses can be handled correctly instead of crashing the system,
e.g.

    barebox:/ md -l 0xa0000003+4
    a0000003: xxxxxxxx                                           ....

Without this patchseries we will get this

    barebox:/ md -l 0xa0000003+4
    a0000003:
    Ooops, address error on load or ifetch!

    ...

    ### ERROR ### Please RESET the board ###

The patchseries is tested on QEMU Malta and Black Swift boards.

Antony Pavlov (4):
  MIPS: traps.c: separate registers print stuff to show_regs()
  MIPS: avoid excessive exception
  MIPS: import exception registers restoring macros from linux kernel
  MIPS: allow user to pass incorrect address to md command

 arch/mips/include/asm/barebox.h    |  2 +-
 arch/mips/include/asm/pbl_macros.h |  2 +-
 arch/mips/include/asm/stackframe.h | 87 ++++++++++++++++++++++++++++++++++++++
 arch/mips/lib/genex.S              |  6 +++
 arch/mips/lib/traps.c              | 65 +++++++++++++++++++++++-----
 5 files changed, 150 insertions(+), 12 deletions(-)

-- 
2.6.2




More information about the barebox mailing list