Skip to content

Instantly share code, notes, and snippets.

@erincandescent
Created January 22, 2013 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erincandescent/4597904 to your computer and use it in GitHub Desktop.
Save erincandescent/4597904 to your computer and use it in GitHub Desktop.
@
@ Exception table
@
.syntax unified
.section .exception_table
.globl __reset, __undefined, __svc, __pfabort, __dtabort, __irq
.align 2
ARM_FUNCTION __reset
blx _reset
END_FUNCTION __reset
.align 2
FUNCTION __undefined
b _undefined
END_FUNCTION __undefined
.align 2
FUNCTION __svc
bkpt #0x08
END_FUNCTION __svc
.align 2
FUNCTION __pfabort
b _pfabort
END_FUNCTION __pfabort
.align 2
FUNCTION __dtabort
b _dtabort
END_FUNCTION __dtabort
.align 2
FUNCTION __hyptrap
__hyptrap: bkpt #0x14
END_FUNCTION __hyptrap
.align 2
FUNCTION __irq
__irq: bkpt #0x18
END_FUNCTION __irq
.align 2
FUNCTION __fiq
__fiq: bkpt #0x1C
END_FUNCTION __fiq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment