stm32f3_sysmem.lst 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. 1 .cpu cortex-m4
  2. 2 .eabi_attribute 20, 1
  3. 3 .eabi_attribute 21, 1
  4. 4 .eabi_attribute 23, 3
  5. 5 .eabi_attribute 24, 1
  6. 6 .eabi_attribute 25, 1
  7. 7 .eabi_attribute 26, 1
  8. 8 .eabi_attribute 30, 4
  9. 9 .eabi_attribute 34, 1
  10. 10 .eabi_attribute 18, 4
  11. 11 .file "stm32f3_sysmem.c"
  12. 12 .text
  13. 13 .Ltext0:
  14. 14 .cfi_sections .debug_frame
  15. 15 .section .text._sbrk,"ax",%progbits
  16. 16 .align 1
  17. 17 .global _sbrk
  18. 18 .arch armv7e-m
  19. 19 .syntax unified
  20. 20 .thumb
  21. 21 .thumb_func
  22. 22 .fpu softvfp
  23. 24 _sbrk:
  24. 25 .LVL0:
  25. 26 .LFB3:
  26. 27 .file 1 "deps//hal/stm32f3/stm32f3_sysmem.c"
  27. 1:deps//hal/stm32f3/stm32f3_sysmem.c **** /**
  28. 2:deps//hal/stm32f3/stm32f3_sysmem.c **** *****************************************************************************
  29. 3:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  30. 4:deps//hal/stm32f3/stm32f3_sysmem.c **** ** File : sysmem.c
  31. 5:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  32. 6:deps//hal/stm32f3/stm32f3_sysmem.c **** ** Author : Ac6
  33. 7:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  34. 8:deps//hal/stm32f3/stm32f3_sysmem.c **** ** Abstract : System Workbench Minimal System Memory calls file
  35. 9:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  36. 10:deps//hal/stm32f3/stm32f3_sysmem.c **** ** For more information about which c-functions
  37. 11:deps//hal/stm32f3/stm32f3_sysmem.c **** ** need which of these lowlevel functions
  38. 12:deps//hal/stm32f3/stm32f3_sysmem.c **** ** please consult the Newlib libc-manual
  39. 13:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  40. 14:deps//hal/stm32f3/stm32f3_sysmem.c **** ** Environment : System Workbench for MCU
  41. 15:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  42. 16:deps//hal/stm32f3/stm32f3_sysmem.c **** ** Distribution: The file is distributed “as is,” without any warranty
  43. 17:deps//hal/stm32f3/stm32f3_sysmem.c **** ** of any kind.
  44. 18:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  45. 19:deps//hal/stm32f3/stm32f3_sysmem.c **** *****************************************************************************
  46. 20:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  47. 21:deps//hal/stm32f3/stm32f3_sysmem.c **** ** <h2><center>&copy; COPYRIGHT(c) 2014 Ac6</center></h2>
  48. 22:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  49. 23:deps//hal/stm32f3/stm32f3_sysmem.c **** ** Redistribution and use in source and binary forms, with or without modification,
  50. 24:deps//hal/stm32f3/stm32f3_sysmem.c **** ** are permitted provided that the following conditions are met:
  51. 25:deps//hal/stm32f3/stm32f3_sysmem.c **** ** 1. Redistributions of source code must retain the above copyright notice,
  52. 26:deps//hal/stm32f3/stm32f3_sysmem.c **** ** this list of conditions and the following disclaimer.
  53. 27:deps//hal/stm32f3/stm32f3_sysmem.c **** ** 2. Redistributions in binary form must reproduce the above copyright notice,
  54. 28:deps//hal/stm32f3/stm32f3_sysmem.c **** ** this list of conditions and the following disclaimer in the documentation
  55. 29:deps//hal/stm32f3/stm32f3_sysmem.c **** ** and/or other materials provided with the distribution.
  56. 30:deps//hal/stm32f3/stm32f3_sysmem.c **** ** 3. Neither the name of Ac6 nor the names of its contributors
  57. 31:deps//hal/stm32f3/stm32f3_sysmem.c **** ** may be used to endorse or promote products derived from this software
  58. 32:deps//hal/stm32f3/stm32f3_sysmem.c **** ** without specific prior written permission.
  59. 33:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  60. 34:deps//hal/stm32f3/stm32f3_sysmem.c **** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  61. 35:deps//hal/stm32f3/stm32f3_sysmem.c **** ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  62. 36:deps//hal/stm32f3/stm32f3_sysmem.c **** ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  63. 37:deps//hal/stm32f3/stm32f3_sysmem.c **** ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  64. 38:deps//hal/stm32f3/stm32f3_sysmem.c **** ** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  65. 39:deps//hal/stm32f3/stm32f3_sysmem.c **** ** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  66. 40:deps//hal/stm32f3/stm32f3_sysmem.c **** ** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  67. 41:deps//hal/stm32f3/stm32f3_sysmem.c **** ** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  68. 42:deps//hal/stm32f3/stm32f3_sysmem.c **** ** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  69. 43:deps//hal/stm32f3/stm32f3_sysmem.c **** ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  70. 44:deps//hal/stm32f3/stm32f3_sysmem.c **** **
  71. 45:deps//hal/stm32f3/stm32f3_sysmem.c **** *****************************************************************************
  72. 46:deps//hal/stm32f3/stm32f3_sysmem.c **** */
  73. 47:deps//hal/stm32f3/stm32f3_sysmem.c ****
  74. 48:deps//hal/stm32f3/stm32f3_sysmem.c **** /* Includes */
  75. 49:deps//hal/stm32f3/stm32f3_sysmem.c **** #include <errno.h>
  76. 50:deps//hal/stm32f3/stm32f3_sysmem.c **** #include <stdio.h>
  77. 51:deps//hal/stm32f3/stm32f3_sysmem.c ****
  78. 52:deps//hal/stm32f3/stm32f3_sysmem.c **** /* Variables */
  79. 53:deps//hal/stm32f3/stm32f3_sysmem.c **** //Uncomment following if needed - commented out for now as not used and causes warning
  80. 54:deps//hal/stm32f3/stm32f3_sysmem.c **** //extern int errno;
  81. 55:deps//hal/stm32f3/stm32f3_sysmem.c **** register char * stack_ptr asm("sp");
  82. 56:deps//hal/stm32f3/stm32f3_sysmem.c ****
  83. 57:deps//hal/stm32f3/stm32f3_sysmem.c **** /* Functions */
  84. 58:deps//hal/stm32f3/stm32f3_sysmem.c ****
  85. 59:deps//hal/stm32f3/stm32f3_sysmem.c **** /**
  86. 60:deps//hal/stm32f3/stm32f3_sysmem.c **** _sbrk
  87. 61:deps//hal/stm32f3/stm32f3_sysmem.c **** Increase program data space. Malloc and related functions depend on this
  88. 62:deps//hal/stm32f3/stm32f3_sysmem.c **** **/
  89. 63:deps//hal/stm32f3/stm32f3_sysmem.c **** caddr_t _sbrk(int incr)
  90. 64:deps//hal/stm32f3/stm32f3_sysmem.c **** {
  91. 28 .loc 1 64 1 view -0
  92. 29 .cfi_startproc
  93. 30 @ args = 0, pretend = 0, frame = 0
  94. 31 @ frame_needed = 0, uses_anonymous_args = 0
  95. 65:deps//hal/stm32f3/stm32f3_sysmem.c **** extern char end asm("end");
  96. 32 .loc 1 65 2 view .LVU1
  97. 66:deps//hal/stm32f3/stm32f3_sysmem.c **** static char *heap_end;
  98. 33 .loc 1 66 2 view .LVU2
  99. 67:deps//hal/stm32f3/stm32f3_sysmem.c **** char *prev_heap_end;
  100. 34 .loc 1 67 2 view .LVU3
  101. 68:deps//hal/stm32f3/stm32f3_sysmem.c ****
  102. 69:deps//hal/stm32f3/stm32f3_sysmem.c **** if (heap_end == 0)
  103. 35 .loc 1 69 2 view .LVU4
  104. 36 .loc 1 69 15 is_stmt 0 view .LVU5
  105. 37 0000 0A4A ldr r2, .L5
  106. 38 .loc 1 69 5 view .LVU6
  107. 39 0002 1168 ldr r1, [r2]
  108. 64:deps//hal/stm32f3/stm32f3_sysmem.c **** extern char end asm("end");
  109. 40 .loc 1 64 1 view .LVU7
  110. 41 0004 08B5 push {r3, lr}
  111. 42 .LCFI0:
  112. 43 .cfi_def_cfa_offset 8
  113. 44 .cfi_offset 3, -8
  114. 45 .cfi_offset 14, -4
  115. 64:deps//hal/stm32f3/stm32f3_sysmem.c **** extern char end asm("end");
  116. 46 .loc 1 64 1 view .LVU8
  117. 47 0006 0346 mov r3, r0
  118. 48 .loc 1 69 5 view .LVU9
  119. 49 0008 09B9 cbnz r1, .L2
  120. 70:deps//hal/stm32f3/stm32f3_sysmem.c **** heap_end = &end;
  121. 50 .loc 1 70 3 is_stmt 1 view .LVU10
  122. 51 .loc 1 70 12 is_stmt 0 view .LVU11
  123. 52 000a 0949 ldr r1, .L5+4
  124. 53 000c 1160 str r1, [r2]
  125. 54 .L2:
  126. 71:deps//hal/stm32f3/stm32f3_sysmem.c ****
  127. 72:deps//hal/stm32f3/stm32f3_sysmem.c **** prev_heap_end = heap_end;
  128. 55 .loc 1 72 2 is_stmt 1 view .LVU12
  129. 56 .loc 1 72 16 is_stmt 0 view .LVU13
  130. 57 000e 1068 ldr r0, [r2]
  131. 58 .LVL1:
  132. 73:deps//hal/stm32f3/stm32f3_sysmem.c **** if (heap_end + incr > stack_ptr)
  133. 59 .loc 1 73 2 is_stmt 1 view .LVU14
  134. 60 .loc 1 73 5 is_stmt 0 view .LVU15
  135. 61 0010 6946 mov r1, sp
  136. 62 .loc 1 73 15 view .LVU16
  137. 63 0012 0344 add r3, r3, r0
  138. 64 .LVL2:
  139. 65 .loc 1 73 5 view .LVU17
  140. 66 0014 8B42 cmp r3, r1
  141. 67 0016 06D9 bls .L3
  142. 74:deps//hal/stm32f3/stm32f3_sysmem.c **** {
  143. 75:deps//hal/stm32f3/stm32f3_sysmem.c **** errno = ENOMEM;
  144. 68 .loc 1 75 3 is_stmt 1 view .LVU18
  145. 69 0018 FFF7FEFF bl __errno
  146. 70 .LVL3:
  147. 71 .loc 1 75 9 is_stmt 0 view .LVU19
  148. 72 001c 0C23 movs r3, #12
  149. 73 001e 0360 str r3, [r0]
  150. 76:deps//hal/stm32f3/stm32f3_sysmem.c **** return (caddr_t) -1;
  151. 74 .loc 1 76 3 is_stmt 1 view .LVU20
  152. 75 .loc 1 76 10 is_stmt 0 view .LVU21
  153. 76 0020 4FF0FF30 mov r0, #-1
  154. 77 .L1:
  155. 77:deps//hal/stm32f3/stm32f3_sysmem.c **** }
  156. 78:deps//hal/stm32f3/stm32f3_sysmem.c ****
  157. 79:deps//hal/stm32f3/stm32f3_sysmem.c **** heap_end += incr;
  158. 80:deps//hal/stm32f3/stm32f3_sysmem.c ****
  159. 81:deps//hal/stm32f3/stm32f3_sysmem.c **** return (caddr_t) prev_heap_end;
  160. 82:deps//hal/stm32f3/stm32f3_sysmem.c **** }
  161. 78 .loc 1 82 1 view .LVU22
  162. 79 0024 08BD pop {r3, pc}
  163. 80 .LVL4:
  164. 81 .L3:
  165. 79:deps//hal/stm32f3/stm32f3_sysmem.c ****
  166. 82 .loc 1 79 2 is_stmt 1 view .LVU23
  167. 79:deps//hal/stm32f3/stm32f3_sysmem.c ****
  168. 83 .loc 1 79 11 is_stmt 0 view .LVU24
  169. 84 0026 1360 str r3, [r2]
  170. 81:deps//hal/stm32f3/stm32f3_sysmem.c **** }
  171. 85 .loc 1 81 2 is_stmt 1 view .LVU25
  172. 81:deps//hal/stm32f3/stm32f3_sysmem.c **** }
  173. 86 .loc 1 81 9 is_stmt 0 view .LVU26
  174. 87 0028 FCE7 b .L1
  175. 88 .L6:
  176. 89 002a 00BF .align 2
  177. 90 .L5:
  178. 91 002c 00000000 .word .LANCHOR0
  179. 92 0030 00000000 .word end
  180. 93 .cfi_endproc
  181. 94 .LFE3:
  182. 96 .bss
  183. 97 .align 2
  184. 98 .set .LANCHOR0,. + 0
  185. 101 heap_end.0:
  186. 102 0000 00000000 .space 4
  187. 103 .text
  188. 104 .Letext0:
  189. 105 .file 2 "/usr/arm-none-eabi/include/sys/types.h"
  190. 106 .file 3 "/usr/arm-none-eabi/include/sys/errno.h"
  191. DEFINED SYMBOLS
  192. *ABS*:0000000000000000 stm32f3_sysmem.c
  193. /tmp/cc3AMQGr.s:16 .text._sbrk:0000000000000000 $t
  194. /tmp/cc3AMQGr.s:24 .text._sbrk:0000000000000000 _sbrk
  195. /tmp/cc3AMQGr.s:91 .text._sbrk:000000000000002c $d
  196. /tmp/cc3AMQGr.s:97 .bss:0000000000000000 $d
  197. /tmp/cc3AMQGr.s:101 .bss:0000000000000000 heap_end.0
  198. UNDEFINED SYMBOLS
  199. __errno
  200. end