nuttx/arch
guoshichao 693e869404 arm-m/barrier: fix green hills build ARM_ISB error
according to armv6-m/armv7-m arch reference manual:
the three ISB {<opt>}, DSB {<opt>}, DMB {<opt>} instructions <opt>
field are defined as:
Specifies an optional limitation on the ISB/DSB/DMB operation. Allowered
values are:
Full system ISB/DSB/DMB operation, encoded as option=='1111'. Can be
omitted.
All other encodings of the options are RESERVED.
the "#opt" field of "isb #opt"

So we could remove the options field in Armv7-m platform.
The following are the build error with greenhills compiler:

CC:  common/arm_exit.c [asarm] (error #2071) /tmp/gh_001h70j1.si 92: bad parameter
  isb 15
------^

[asarm] (error #2071) /tmp/gh_001h70j1.si 112: bad parameter
  isb 15
------^

[asarm] (error) errors during processing

According to armv8-m arch reference manual:
the ISB/DMB instruction's "opt" encoding rule is same as
armv6-m/armv7-m, but the "DSB" instruction is different, in armv8-m, the
"DSB {<opt>}" field has two valid encoding options: 0b0000, 0b0100.
and all other encoding options are reserved.

In Armv7-a/Armv8-a, the dsb/dmb option field has 8 valid state value.

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2024-08-11 14:28:12 -03:00
..
arm arm-m/barrier: fix green hills build ARM_ISB error 2024-08-11 14:28:12 -03:00
arm64 zynq-mpsoc/zcu111: independent JTAG configs from normal nsh configs 2024-07-30 12:41:30 -03:00
avr at32uc3a0: Initial work for SimpleMachines' Mizar32-A 2024-07-15 20:46:41 +08:00
ceva Revert "irq: remove restore_critical_section in irq" 2024-07-02 15:46:20 +08:00
dummy
hc sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
mips spin_lock: inline spin_lock 2024-07-15 02:29:30 +08:00
misoc sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
or1k sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
renesas sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
risc-v arch/riscv: add cluster local hartid 2024-08-12 00:10:13 +08:00
sim build: Fix Toolchain.cmake for CONFIG_SIM_ASAN enabled 2024-08-08 09:44:47 +08:00
sparc spin_lock: inline spin_lock 2024-07-15 02:29:30 +08:00
tricore tricore/cmake: add support of cmake build for tricore 2024-07-18 13:40:49 +08:00
x86 sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
x86_64 arch/x86_64: fix build break if disable CONFIG_SPINLOCK 2024-08-05 16:20:47 +08:00
xtensa xtensa/esp32s3: Update the rtc code to fix system blocking issue 2024-08-09 12:49:34 -03:00
z16 sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
z80 sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
CMakeLists.txt
Kconfig libc/x86_64: port string functions from bionic 2024-07-02 23:59:18 +08:00