You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

133 lines
3.3 KiB

  1. /****************************************************************************
  2. * Copyright (c) 2006 by Michael Fischer. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * 1. Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * 2. Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in the
  12. * documentation and/or other materials provided with the distribution.
  13. * 3. Neither the name of the author nor the names of its contributors may
  14. * be used to endorse or promote products derived from this software
  15. * without specific prior written permission.
  16. *
  17. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  18. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  19. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  20. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
  21. * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  22. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  23. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  24. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  25. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  26. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  27. * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  28. * SUCH DAMAGE.
  29. *
  30. ****************************************************************************
  31. *
  32. * History:
  33. *
  34. * 30.03.06 mifi First Version
  35. ****************************************************************************/
  36. ENTRY(ResetHandler)
  37. SEARCH_DIR(.)
  38. /*
  39. * Define stack size here
  40. */
  41. FIQ_STACK_SIZE = 0x0100;
  42. IRQ_STACK_SIZE = 0x0100;
  43. ABT_STACK_SIZE = 0x0100;
  44. UND_STACK_SIZE = 0x0100;
  45. SVC_STACK_SIZE = 0x0100;
  46. MEMORY
  47. {
  48. ram : org = 0x00200000, len = 64k
  49. }
  50. /*
  51. * Do not change the next code
  52. */
  53. SECTIONS
  54. {
  55. .text :
  56. {
  57. *(.vectors);
  58. . = ALIGN(4);
  59. *(.init);
  60. . = ALIGN(4);
  61. *(.text);
  62. . = ALIGN(4);
  63. *(.rodata);
  64. . = ALIGN(4);
  65. *(.rodata*);
  66. . = ALIGN(4);
  67. *(.glue_7t);
  68. . = ALIGN(4);
  69. *(.glue_7);
  70. . = ALIGN(4);
  71. etext = .;
  72. } > ram
  73. .data :
  74. {
  75. PROVIDE (__data_start = .);
  76. *(.data)
  77. . = ALIGN(4);
  78. edata = .;
  79. _edata = .;
  80. PROVIDE (__data_end = .);
  81. } > ram
  82. .bss :
  83. {
  84. PROVIDE (__bss_start = .);
  85. *(.bss)
  86. *(COMMON)
  87. . = ALIGN(4);
  88. PROVIDE (__bss_end = .);
  89. . = ALIGN(256);
  90. PROVIDE (__stack_start = .);
  91. PROVIDE (__stack_fiq_start = .);
  92. . += FIQ_STACK_SIZE;
  93. . = ALIGN(4);
  94. PROVIDE (__stack_fiq_end = .);
  95. PROVIDE (__stack_irq_start = .);
  96. . += IRQ_STACK_SIZE;
  97. . = ALIGN(4);
  98. PROVIDE (__stack_irq_end = .);
  99. PROVIDE (__stack_abt_start = .);
  100. . += ABT_STACK_SIZE;
  101. . = ALIGN(4);
  102. PROVIDE (__stack_abt_end = .);
  103. PROVIDE (__stack_und_start = .);
  104. . += UND_STACK_SIZE;
  105. . = ALIGN(4);
  106. PROVIDE (__stack_und_end = .);
  107. PROVIDE (__stack_svc_start = .);
  108. . += SVC_STACK_SIZE;
  109. . = ALIGN(4);
  110. PROVIDE (__stack_svc_end = .);
  111. PROVIDE (__stack_end = .);
  112. PROVIDE (__heap_start = .);
  113. } > ram
  114. }
  115. /*** EOF ***/