X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=betty%2Fstartup.s;h=d6b0184641a3d02d4af553c485ad929a4f80e42e;hb=ac35214abd7d42a7294047d1c8b7ce7552a38fbf;hp=af87f6e37c9a62c43f14befb4dfd607e8f21f0d0;hpb=26b834d1801d8453bb25b6b427a6b6c3b131cf57;p=my-code%2Farm.git diff --git a/betty/startup.s b/betty/startup.s index af87f6e..d6b0184 100644 --- a/betty/startup.s +++ b/betty/startup.s @@ -50,25 +50,26 @@ # exception handling must go to the very beginning - b handler_reset - b handler_undef_instruction - b handler_soft_ir - b handler_prefetch_abort - b handler_data_abort + ldr pc, handler_reset + ldr pc, handler_undef_instruction + ldr pc, handler_soft_ir + ldr pc, handler_prefetch_abort + ldr pc, handler_data_abort nop - b handler_irq - b handler_fiq + ldr pc, handler_irq + ldr pc, handler_fiq - handler_undef_instruction: .word interrupt_handler_undef_instruction - handler_soft_ir: .word interrupt_handler_soft_ir - handler_prefetch_abort: .word interrupt_handler_prefetch_abort - handler_data_abort: .word interrupt_handler_data_abort - handler_irq: .word interrupt_handler_irq - handler_fiq: .word interrupt_handler_fiq +handler_reset: .word handle_reset +handler_undef_instruction: .word interrupt_handler_undef_instruction +handler_soft_ir: .word interrupt_handler_soft_ir +handler_prefetch_abort: .word interrupt_handler_prefetch_abort +handler_data_abort: .word interrupt_handler_data_abort +handler_irq: .word interrupt_handler_irq +handler_fiq: .word interrupt_handler_fiq # reset handling goes here -handler_reset: +handle_reset: # init stack pointer for each mode + set stack limit