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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux