vector_gcc.S 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. #include <rtconfig.h>
  25. .section .vectors, "ax"
  26. .code 32
  27. .globl system_vectors
  28. system_vectors:
  29. ldr pc, _vector_reset
  30. ldr pc, _vector_undef
  31. ldr pc, _vector_swi
  32. ldr pc, _vector_pabt
  33. ldr pc, _vector_dabt
  34. ldr pc, _vector_resv
  35. ldr pc, _vector_irq
  36. ldr pc, _vector_fiq
  37. .globl _reset
  38. .globl vector_undef
  39. .globl vector_swi
  40. .globl vector_pabt
  41. .globl vector_dabt
  42. .globl vector_resv
  43. .globl vector_irq
  44. .globl vector_fiq
  45. _vector_reset:
  46. .word _reset
  47. _vector_undef:
  48. .word vector_undef
  49. _vector_swi:
  50. .word vector_swi
  51. _vector_pabt:
  52. .word vector_pabt
  53. _vector_dabt:
  54. .word vector_dabt
  55. _vector_resv:
  56. .word vector_resv
  57. _vector_irq:
  58. .word vector_irq
  59. _vector_fiq:
  60. .word vector_fiq
  61. .balignl 16,0xdeadbeef