mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
6c59363004
Add exception handlers for generic and EJTAG exceptions. Most of the assembly code is imported from Linux kernel and adapted to U-Boot. The exception vector table will be reserved above the stack before U-Boot is relocated. The exception handlers will be installed and activated after relocation in the initr_traps hook function. Generic exceptions are handled by showing a CPU register dump similar to Linux kernel. For example: malta # md 1 00000001: Ooops: $ 0 : 00000000 00000000 00000009 00000004 $ 4 : 8ff7e108 00000000 0000003a 00000000 $ 8 : 00000008 00000001 8ff7cd18 00000004 $12 : 00000002 00000000 00000005 0000003a $16 : 00000004 00000040 00000001 00000001 $20 : 00000000 8fff53c0 00000008 00000004 $24 : ffffffff 8ffdea44 $28 : 90001650 8ff7cd00 00000004 8ffe6818 Hi : 00000000 Lo : 00000004 epc : 8ffe6848 (text bfc28848) ra : 8ffe6818 (text bfc28818) Status: 00000006 Cause : 00000410 (ExcCode 04) BadVA : 8ff9e928 PrId : 00019300 ### ERROR ### Please RESET the board ### EJTAG exceptions are checked for SDBBP and delegated to the SDBBP handler if necessary. Otherwise the debug mode will simply be exited. The SDBBP handler currently prints the contents of registers c0_depc and c0_debug. This could be extended in the future to handle semi-hosting according to the MIPS UHI specification. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by: Paul Burton <paul.burton@imgtec.com> Tested-by: Paul Burton <paul.burton@imgtec.com> |
||
---|---|---|
.. | ||
mach-generic | ||
addrspace.h | ||
asm-offsets.h | ||
asm.h | ||
bitops.h | ||
byteorder.h | ||
cache.h | ||
cachectl.h | ||
cacheops.h | ||
cm.h | ||
config.h | ||
const.h | ||
cpu-features.h | ||
global_data.h | ||
gpio.h | ||
io.h | ||
isadep.h | ||
linkage.h | ||
malta.h | ||
mipsregs.h | ||
pgtable-bits.h | ||
posix_types.h | ||
processor.h | ||
ptrace.h | ||
reboot.h | ||
reg.h | ||
regdef.h | ||
sections.h | ||
sgidefs.h | ||
string.h | ||
system.h | ||
types.h | ||
u-boot-mips.h | ||
u-boot.h | ||
unaligned.h |