mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] MIPS: support return from exception; allow user to pass incorrect address to md command
@ 2015-11-10  7:27 Antony Pavlov
  2015-11-10  7:27 ` [PATCH 1/4] MIPS: traps.c: separate registers print stuff to show_regs() Antony Pavlov
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Antony Pavlov @ 2015-11-10  7:27 UTC (permalink / raw)
  To: barebox

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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-11  7:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-10  7:27 [PATCH 0/4] MIPS: support return from exception; allow user to pass incorrect address to md command Antony Pavlov
2015-11-10  7:27 ` [PATCH 1/4] MIPS: traps.c: separate registers print stuff to show_regs() Antony Pavlov
2015-11-10  7:27 ` [PATCH 2/4] MIPS: avoid excessive exception Antony Pavlov
2015-11-10  7:27 ` [PATCH 3/4] MIPS: import exception registers restoring macros from linux kernel Antony Pavlov
2015-11-10  7:27 ` [PATCH 4/4] MIPS: allow user to pass incorrect address to md command Antony Pavlov
2015-11-11  7:40 ` [PATCH 0/4] MIPS: support return from exception; " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox