ardupilot/libraries/AP_HAL_ChibiOS/hwdef/common
Thomas Watson 5f5673b58f AP_HAL_ChibiOS: match thread stack pointer types to ChibiOS
`__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.
2024-01-16 09:24:34 +11:00
..
board.c
board.h
bouncebuffer.c HAL_ChibiOS: added mem_is_dma_safe() function 2024-01-05 06:52:11 -08:00
bouncebuffer.h
chconf.h
chibios_board.mk HAL_ChibiOS: don't link evtimer in chibios_board.mk 2024-01-03 12:14:47 +11:00
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 HAL_ChibiOS: fixed DMA on SPI on H743 2024-01-07 19:10:25 +11:00
mcuconf.h
poll.h
ppm.h
spi_hook.h
stdio.h
stm32_util.c
stm32_util.h AP_HAL_ChibiOS: match thread stack pointer types to ChibiOS 2024-01-16 09:24:34 +11:00
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