vector_gcc.S 1005 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * Copyright (c) 2006-2018, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2013-07-05 Bernard the first version
  9. */
  10. #include "rtconfig.h"
  11. .section .vectors, "ax"
  12. .code 32
  13. .globl system_vectors
  14. system_vectors:
  15. #ifdef RT_USING_SMART
  16. b _reset
  17. #else
  18. ldr pc, _vector_reset
  19. #endif
  20. ldr pc, _vector_undef
  21. ldr pc, _vector_swi
  22. ldr pc, _vector_pabt
  23. ldr pc, _vector_dabt
  24. ldr pc, _vector_resv
  25. ldr pc, _vector_irq
  26. ldr pc, _vector_fiq
  27. .globl _reset
  28. .globl vector_undef
  29. .globl vector_swi
  30. .globl vector_pabt
  31. .globl vector_dabt
  32. .globl vector_resv
  33. .globl vector_irq
  34. .globl vector_fiq
  35. _vector_reset:
  36. .word _reset
  37. _vector_undef:
  38. .word vector_undef
  39. _vector_swi:
  40. .word vector_swi
  41. _vector_pabt:
  42. .word vector_pabt
  43. _vector_dabt:
  44. .word vector_dabt
  45. _vector_resv:
  46. .word vector_resv
  47. _vector_irq:
  48. .word vector_irq
  49. _vector_fiq:
  50. .word vector_fiq
  51. .balignl 16,0xdeadbeef