Rev 667 | Rev 897 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 667 | Rev 883 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <arch/trap/exception.h> |
29 | #include <arch/trap/exception.h> |
- | 30 | #include <arch/asm.h> |
|
30 | #include <debug.h> |
31 | #include <debug.h> |
31 | 32 | ||
32 | /** Handle instruction_access_exception. */ |
33 | /** Handle instruction_access_exception. */ |
33 | void do_instruction_access_exc(void) |
34 | void do_instruction_access_exc(void) |
34 | { |
35 | { |
Line 38... | Line 39... | ||
38 | /** Handle mem_address_not_aligned. */ |
39 | /** Handle mem_address_not_aligned. */ |
39 | void do_mem_address_not_aligned(void) |
40 | void do_mem_address_not_aligned(void) |
40 | { |
41 | { |
41 | panic("Memory Address Not Aligned\n"); |
42 | panic("Memory Address Not Aligned\n"); |
42 | } |
43 | } |
- | 44 | ||
- | 45 | /** Handle mem_address_not_aligned. */ |
|
- | 46 | void do_illegal_instruction(void) |
|
- | 47 | { |
|
- | 48 | panic("Illegal Instruction: %P\n", tpc_read()); |
|
- | 49 | } |