MIPS: microMIPS: Add support for exception handling.
All exceptions must be taken in microMIPS mode, never in classic MIPS mode or the kernel falls apart. A few NOP instructions are used to maintain the correct alignment of microMIPS versions of the exception vectors. Signed-off-by: Steven J. Hill <Steven.Hill@imgtec.com>
This commit is contained in:

committed by
Ralf Baechle

parent
102cedc32a
commit
2a0b24f56c
@@ -138,9 +138,18 @@ stackargs:
|
||||
5: jr t1
|
||||
sw t5, 16(sp) # argument #5 to ksp
|
||||
|
||||
#ifdef CONFIG_CPU_MICROMIPS
|
||||
sw t8, 28(sp) # argument #8 to ksp
|
||||
nop
|
||||
sw t7, 24(sp) # argument #7 to ksp
|
||||
nop
|
||||
sw t6, 20(sp) # argument #6 to ksp
|
||||
nop
|
||||
#else
|
||||
sw t8, 28(sp) # argument #8 to ksp
|
||||
sw t7, 24(sp) # argument #7 to ksp
|
||||
sw t6, 20(sp) # argument #6 to ksp
|
||||
#endif
|
||||
6: j stack_done # go back
|
||||
nop
|
||||
.set pop
|
||||
|
Reference in New Issue
Block a user