Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

stm32h7: do bss/data setup in crt0 for bootloader only

Change-Id: I67798a4370b01127364c40328549a6d3081545cf

authored by

Aidan MacDonald and committed by
Solomon Peachy
bd73e0dd e3bf9210

+11 -3
+11 -3
firmware/target/arm/stm32/crt0-stm32h7.S
··· 52 52 b crt0_start 53 53 54 54 55 - .global start 56 - .type start, function 55 + .global crt0_start 56 + .type crt0_start, function 57 57 crt0_start: 58 + #ifdef BOOTLOADER 59 + /* 60 + * Initialize data/bss for bootloader 61 + * (not needed on app since ELF loader takes care of it) 62 + */ 63 + 58 64 /* Zero out BSS */ 59 65 ldr a1, =_bssbegin 60 66 ldr a2, =_bssend ··· 66 72 ldr a2, =_dataend 67 73 ldr a3, =_datacopy 68 74 bl crt0_area_copy 75 + #endif 69 76 70 77 /* Clear the main thread stack */ 71 78 ldr a1, =stackbegin ··· 96 103 b main 97 104 98 105 106 + #ifdef BOOTLOADER 99 107 .local crt0_area_copy 100 108 .type crt0_area_copy, function 101 109 /* crt0_area_copy(uint32_t *dst, uint32_t *dst_end, const void *src) */ ··· 105 113 strhi v1, [a1], #4 106 114 bhi crt0_area_copy 107 115 bx lr 108 - 116 + #endif 109 117 110 118 .local crt0_area_clear 111 119 .type crt0_area_clear, function