libs/libc/machine/arm: Include nuttx/config.h in arch_mcount.S.

arch_mcount.S selects the ARMv6-M code with CONFIG_ARCH_CORTEXM0 and
CONFIG_ARCH_CORTEXM23, but it did not include nuttx/config.h.  So it
always assembled the Thumb-2 code, and CONFIG_PROFILE_MINI did not
build on Cortex-M0, M0+ and M23:

  arch_mcount.S:48: Error: cannot honor width suffix -- `bic r1,r1,#1'

Include nuttx/config.h.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
This commit is contained in:
Marco Casaroli 2026-10-08 23:35:35 +02:00 • committed by Alan C. Assis
parent 5b383ae5ba
commit 2db8a4d77a

View file

@ -18,6 +18,12 @@
*
****************************************************************************/
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
/****************************************************************************
* Public Functions
****************************************************************************/