Added missing exception handler at startup.S.

This commit is contained in:
Serge Vakulenko
2015-06-26 20:24:35 -07:00
parent 229b664f35
commit 0cf79d71cf
2 changed files with 21 additions and 2 deletions

9
sys/pic32/pinguino-micro/.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
.compileversion
.deps/
.oldversion
machine
sys
unix.bin
unix.map
usbboot.map
vers.c

View File

@@ -121,12 +121,22 @@ _imgptr: .word -1 # Image header pointer
#---------------------------------------
# Exception vector: handle interrupts and exceptions
# Exception vector: handle exceptions
#
.org 0x200
.org 0x180
.type _exception_vector_, @function
_exception_vector_: .globl _exception_vector_
b _interrupt_vector_
nop
#---------------------------------------
# Interrupt vector: handle interrupts
#
.org 0x200
.type _interrupt_vector_, @function
_interrupt_vector_: .globl _interrupt_vector_
mfc0 $k0, $C0_STATUS
andi $k1, $k0, ST_UM # Check user mode
beqz $k1, kernel_exception