Last change
on this file since 404 was
388,
checked in by cfuguet, 12 years ago
|
Modifications in tsar/trunk/softs/tsar_boot:
- Improving the boot_ioc_read when using a SD card in FPGA platform.
- Adding some instrumentation on the SD card driver (under preprocessor
conditional directives).
- Including Doxyfile for generate documentation using doxygen.
- Improving the Makefile to include doc generation.
|
File size:
504 bytes
|
Line | |
---|
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 <boot_tty.h> |
---|
10 | |
---|
11 | void handle_except(int status, int cause, int epc) |
---|
12 | { |
---|
13 | boot_puts("boot (default) exeption handler called: \r\n status "); |
---|
14 | boot_putx(status); |
---|
15 | boot_puts("\r\n cause "); |
---|
16 | boot_putx(cause); |
---|
17 | boot_puts(" (exeption "); |
---|
18 | boot_putx((cause >> 2) & 0x1f); |
---|
19 | boot_puts(")\r\n epc "); |
---|
20 | boot_putx(epc); |
---|
21 | boot_puts("\r\n"); |
---|
22 | while (1); |
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.