fixed_ivor.S 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright 2009 Freescale Semiconductor, Inc.
  3. *
  4. * Kumar Gala <kumar.gala@freescale.com>
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. * MA 02111-1307 USA
  23. */
  24. /* This file is intended to be included by other asm code since
  25. * we will want to execute this on both the primary core when
  26. * it does a bootm and the secondary core's that get released
  27. * out of the spin table */
  28. #define SET_IVOR(vector_number, vector_offset) \
  29. li r3,vector_offset@l; \
  30. mtspr SPRN_IVOR##vector_number,r3;
  31. #define SET_GIVOR(vector_number, vector_offset) \
  32. li r3,vector_offset@l; \
  33. mtspr SPRN_GIVOR##vector_number,r3;
  34. SET_IVOR(0, 0x020) /* Critical Input */
  35. SET_IVOR(1, 0x000) /* Machine Check */
  36. SET_IVOR(2, 0x060) /* Data Storage */
  37. SET_IVOR(3, 0x080) /* Instruction Storage */
  38. SET_IVOR(4, 0x0a0) /* External Input */
  39. SET_IVOR(5, 0x0c0) /* Alignment */
  40. SET_IVOR(6, 0x0e0) /* Program */
  41. SET_IVOR(7, 0x100) /* FP Unavailable */
  42. SET_IVOR(8, 0x120) /* System Call */
  43. SET_IVOR(9, 0x140) /* Auxiliary Processor Unavailable */
  44. SET_IVOR(10, 0x160) /* Decrementer */
  45. SET_IVOR(11, 0x180) /* Fixed Interval Timer */
  46. SET_IVOR(12, 0x1a0) /* Watchdog Timer */
  47. SET_IVOR(13, 0x1c0) /* Data TLB Error */
  48. SET_IVOR(14, 0x1e0) /* Instruction TLB Error */
  49. SET_IVOR(15, 0x040) /* Debug */
  50. /* e500v1 & e500v2 only */
  51. #ifndef CONFIG_E500MC
  52. SET_IVOR(32, 0x200) /* SPE Unavailable */
  53. SET_IVOR(33, 0x220) /* Embedded FP Data */
  54. SET_IVOR(34, 0x240) /* Embedded FP Round */
  55. #endif
  56. SET_IVOR(35, 0x260) /* Performance monitor */
  57. /* e500mc only */
  58. #ifdef CONFIG_E500MC
  59. SET_IVOR(36, 0x280) /* Processor doorbell */
  60. SET_IVOR(37, 0x2a0) /* Processor doorbell critical */
  61. SET_IVOR(38, 0x2c0) /* Guest Processor doorbell */
  62. SET_IVOR(39, 0x2e0) /* Guest Processor critical & machine check */
  63. SET_IVOR(40, 0x300) /* Hypervisor system call */
  64. SET_IVOR(41, 0x320) /* Hypervisor Priviledge */
  65. SET_GIVOR(2, 0x060) /* Guest Data Storage */
  66. SET_GIVOR(3, 0x080) /* Guest Instruction Storage */
  67. SET_GIVOR(4, 0x0a0) /* Guest External Input */
  68. SET_GIVOR(8, 0x120) /* Guest System Call */
  69. SET_GIVOR(13, 0x1c0) /* Guest Data TLB Error */
  70. SET_GIVOR(14, 0x1e0) /* Guest Instruction TLB Error */
  71. #endif