Skip to content

Commit

Permalink
BIOS: sanitize exception vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Nov 12, 2011
1 parent 981c25f commit 4def59a
Showing 1 changed file with 40 additions and 10 deletions.
50 changes: 40 additions & 10 deletions software/bios/crt0.S
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,54 @@ _reset_handler:
bi _crt0

_breakpoint_handler:
nop; nop; nop; nop
nop; nop; nop; nop
bi _breakpoint_handler
nop
nop
nop
nop
nop
nop
nop

_instruction_bus_error_handler:
nop; nop; nop; nop
nop; nop; nop; nop
bi _instruction_bus_error_handler
nop
nop
nop
nop
nop
nop
nop

_watchpoint_hander:
nop; nop; nop; nop
nop; nop; nop; nop
bi _watchpoint_hander
nop
nop
nop
nop
nop
nop
nop

_data_bus_error_handler:
nop; nop; nop; nop
nop; nop; nop; nop
bi _data_bus_error_handler
nop
nop
nop
nop
nop
nop
nop

_divide_by_zero_handler:
nop; nop; nop; nop
nop; nop; nop; nop
bi _divide_by_zero_handler
nop
nop
nop
nop
nop
nop
nop

_interrupt_handler:
sw (sp+0), ra
Expand Down

0 comments on commit 4def59a

Please sign in to comment.