zephyr/arch/arm/core
Jonathon Penix 274bd59283 arch: arm: cortex-m: Change character used to mark immediate operand
Change the character used to indicate immediate operands from '$' to '#'
to resolve an "invalid instruction" error when building with clang.

For arm, binutils allows either '#' or '$' to indicate immediate operands.
clang seems to accept '$' for arm in other instances
(my build accepts 'subs r0, r0, $0x02', for example), but in this case it
produces an error that this is an invalid instruction due to the "$0x02"
operand.

Given clang's inconsistent behavior, I'm guessing this is a bug in clang
somewhere, but:

  1. '#' for immediate operands seems to be more standard for arm in
     general and seems to be what is used throughout the rest of Zephyr's
     arm asm code.
  2. Switching out '$' for '#' shouldn't negatively impact other
     toolchains.

As such, switch out the character used to unblock clang builds until this
can be fixed in clang.

Signed-off-by: Jonathon Penix <jpenix@quicinc.com>
2024-05-03 07:28:52 -04:00
..
cortex_a_r kernel: rename Z_THREAD_STACK_BUFFER to K_THREAD_STACK_BUFFER 2024-03-27 19:27:10 -04:00
cortex_m arch: arm: cortex-m: Change character used to mark immediate operand 2024-05-03 07:28:52 -04:00
mmu arm: debug: Add GDB stub for aarch32 2023-12-18 09:31:42 +01:00
mpu arm: mpu: clear mpu regions before initialization 2024-01-26 09:33:09 +00:00
offsets arch: arm: cortex_a_r: introduce USE_SWITCH 2023-11-06 15:32:01 -06:00
__aeabi_atexit.c arch: arm: Remove aarch32 directory 2023-09-13 10:08:05 +01:00
CMakeLists.txt arch: arm: Update to support local ISR declaration 2024-02-02 19:49:36 +01:00
elf.c llext: Full ARM ELF relocation support 2024-04-10 14:13:15 -04:00
fatal.c arm: fatal: log which IRQn is triggering on spurious IRQs 2024-05-02 22:42:30 +01:00
gdbstub.c arm: debug: Add GDB stub for aarch32 2023-12-18 09:31:42 +01:00
header.S arch: arm: Remove aarch32 directory 2023-09-13 10:08:05 +01:00
irq_offload.c arch: arm: cortex_m: use cmsis API rather than assembly 2024-04-15 09:09:28 -07:00
Kconfig arm: debug: Add GDB stub for aarch32 2023-12-18 09:31:42 +01:00
Kconfig.vfp arch: arm: Remove aarch32 directory 2023-09-13 10:08:05 +01:00
nmi_on_reset.S arch: arm: Remove aarch32 directory 2023-09-13 10:08:05 +01:00
nmi.c arch: arm: Remove aarch32 directory 2023-09-13 10:08:05 +01:00
swi_tables.ld arch: arm, arm64: Remove zephyr prefix from linker includes 2024-02-05 12:32:46 +01:00
tls.c arch: arm: Remove aarch32 directory 2023-09-13 10:08:05 +01:00
userspace.S arch: arm: rename expection header 2023-12-11 18:22:40 -05:00
vector_table.ld arch: arm, arm64: Remove zephyr prefix from linker includes 2024-02-05 12:32:46 +01:00
zimage_header.ld arch: arm: Remove aarch32 directory 2023-09-13 10:08:05 +01:00