.section ".interrupt_vectors.text" .global abort_handler .global irq_handler .local generic_handler .global _interrupt_vectors _interrupt_vectors: ldr pc,reset_handler ldr pc,undefined_handler ldr pc,swi_handler ldr pc,prefetch_handler ldr pc,data_handler ldr pc,unused_handler ldr pc,irq_handler_caller ldr pc,fiq_handler reset_handler: .word abort undefined_handler: .word abort swi_handler: .word abort prefetch_handler: .word abort data_handler: .word abort unused_handler: .word abort irq_handler_caller: .word irq fiq_handler: .word abort //b abort_handler_caller //b abort_handler_caller //b abort_handler_caller //b abort_handler_caller //b abort_handler_caller //b abort_handler_caller //b abort_handler_caller .globl enable_irq enable_irq: mrs r0,cpsr bic r0,r0,#0x80 msr cpsr_c,r0 bx lr generic_handler: b generic_handler abort_handler_caller: mov sp, #0x8000 ldr r5, =abort_handler bx r5 irq: mov sp, #0x8000 ldr r5, =abort_handler subs pc,lr,#4