mirror of https://github.com/ArduPilot/ardupilot
5f5673b58f
`__main_thread_stack_base__` and `__main_thread_stack_end__` are variables whose address is defined to be the corresponding part of the stack. These are declared as `extern stkalign_t` in ChibiOS code, and being declared as `extern uint32_t` in ArduPilot code creates a warning at link time when using LTO. Correct the declaration to eliminate this warning. Also update `__main_stack_base__` and `__main_stack_end__` which don't currently trigger this warning but serve similar purposes and so might in the future. The hardware expects an alignment of `stkalign_t` (which is 8 bytes) and the linker script defines the variable values with this alignment as well, so this is safe. No code size or functional change. |
||
---|---|---|
.. | ||
board.c | ||
board.h | ||
bouncebuffer.c | ||
bouncebuffer.h | ||
chconf.h | ||
chibios_board.mk | ||
chibios_common.mk | ||
common.ld | ||
common_extf.ld | ||
common_extf_h730.ld | ||
common_extf_h750.ld | ||
common_mixf.ld | ||
crashdump.c | ||
cstdio | ||
ffconf.h | ||
flash.c | ||
flash.h | ||
halconf.h | ||
hrt.c | ||
hrt.h | ||
malloc.c | ||
mcuconf.h | ||
poll.h | ||
ppm.h | ||
spi_hook.h | ||
stdio.h | ||
stm32_util.c | ||
stm32_util.h | ||
stm32f1_mcuconf.h | ||
stm32f3_mcuconf.h | ||
stm32f47_mcuconf.h | ||
stm32g4_mcuconf.h | ||
stm32h7_mcuconf.h | ||
stm32h7_type2_mcuconf.h | ||
stm32l4+_mcuconf.h | ||
stm32l4_mcuconf.h | ||
stubs.c | ||
usbcfg.c | ||
usbcfg.h | ||
usbcfg_common.c | ||
usbcfg_dualcdc.c | ||
watchdog.c | ||
watchdog.h |