Added missing exception handler at startup.S.
This commit is contained in:
9
sys/pic32/pinguino-micro/.gitignore
vendored
Normal file
9
sys/pic32/pinguino-micro/.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
.compileversion
|
||||
.deps/
|
||||
.oldversion
|
||||
machine
|
||||
sys
|
||||
unix.bin
|
||||
unix.map
|
||||
usbboot.map
|
||||
vers.c
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user