Last change
on this file since 733 was
724,
checked in by cfuguet, 10 years ago
|
branches/fault_tolerance:
- Recreating fault_tolerance branch with all new modifications from
trunk.
- Introducing distributed boot rom in the tsar_generic_iob platform
|
File size:
574 bytes
|
Rev | Line | |
---|
[724] | 1 | /** |
---|
| 2 | * \file : exceptions.c |
---|
| 3 | * \date : December 2012 |
---|
| 4 | * \author : Manuel Bouyer |
---|
| 5 | * |
---|
| 6 | * This file defines a simple exceptions handler |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include <reset_tty.h> |
---|
| 10 | |
---|
| 11 | void handle_except(int status, int cause, int epc, int dbvar) |
---|
| 12 | { |
---|
| 13 | reset_puts("\n[RESET] exception handler called: \r\n status "); |
---|
| 14 | reset_putx(status); |
---|
| 15 | reset_puts("\r\n cause "); |
---|
| 16 | reset_putx(cause); |
---|
| 17 | reset_puts(" (exception "); |
---|
| 18 | reset_putx((cause >> 2) & 0x1f); |
---|
| 19 | reset_puts(")\r\n epc "); |
---|
| 20 | reset_putx(epc); |
---|
| 21 | reset_puts("\r\n dbvar "); |
---|
| 22 | reset_putx(dbvar); |
---|
| 23 | reset_puts("\r\n"); |
---|
| 24 | while (1); |
---|
| 25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.