Skip to content

Commit bad29dd

Browse files
giulcioffifacchinm
authored andcommitted
RP2040: don't initalize contructors during runtime_init()
1 parent 5cb8591 commit bad29dd

File tree

1 file changed

+0
-13
lines changed
  • targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/pico_runtime

1 file changed

+0
-13
lines changed

targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/pico_runtime/runtime.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,6 @@ void runtime_init(void) {
160160
spin_locks_reset();
161161
irq_init_priorities();
162162
alarm_pool_init_default();
163-
164-
// Start and end points of the constructor list,
165-
// defined by the linker script.
166-
extern void (*__init_array_start)(void);
167-
extern void (*__init_array_end)(void);
168-
169-
// Call each function in the list.
170-
// We have to take the address of the symbols, as __init_array_start *is*
171-
// the first function pointer, not the address of it.
172-
for (void (**p)(void) = &__init_array_start; p < &__init_array_end; ++p) {
173-
(*p)();
174-
}
175-
176163
}
177164

178165
void __exit(__unused int status) {

0 commit comments

Comments
 (0)