vector_gcc.S 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * File : vector_gcc.S
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2013, RT-Thread Development Team
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  19. *
  20. * Change Logs:
  21. * Date Author Notes
  22. * 2013-07-05 Bernard the first version
  23. */
  24. .section .vectors, "ax"
  25. .code 32
  26. .globl system_vectors
  27. system_vectors:
  28. ldr pc, _vector_reset
  29. ldr pc, _vector_undef
  30. ldr pc, _vector_swi
  31. ldr pc, _vector_pabt
  32. ldr pc, _vector_dabt
  33. ldr pc, _vector_resv
  34. ldr pc, _vector_irq
  35. ldr pc, _vector_fiq
  36. .globl _reset
  37. .globl vector_undef
  38. .globl vector_swi
  39. .globl vector_pabt
  40. .globl vector_dabt
  41. .globl vector_resv
  42. .globl vector_irq
  43. .globl vector_fiq
  44. _vector_reset:
  45. .word _reset
  46. _vector_undef:
  47. .word vector_undef
  48. _vector_swi:
  49. .word vector_swi
  50. _vector_pabt:
  51. .word vector_pabt
  52. _vector_dabt:
  53. .word vector_dabt
  54. _vector_resv:
  55. .word vector_resv
  56. _vector_irq:
  57. .word vector_irq
  58. _vector_fiq:
  59. .word vector_fiq
  60. .balignl 16,0xdeadbeef