chao an
27d5a1b4b7
arm/memory_barrier: fix build warning on GCC14
...
nuttx/include/arch/spinlock.h:66:9: warning: "UP_DSB" redefined
66 | #define UP_DSB() __asm__ __volatile__ ("dsb sy" : : : "memory")
| ^~~~~~
In file included from nuttx/include/arch/barriers.h:37,
from nuttx/include/arch/spinlock.h:34:
nuttx/include/arch/armv8-m/barriers.h:42:9: note: this is the location of the previous definition
42 | #define UP_DSB() arm_dsb(15)
| ^~~~~~
nuttx/include/arch/spinlock.h:67:9: warning: "UP_DMB" redefined
67 | #define UP_DMB() __asm__ __volatile__ ("dmb st" : : : "memory")
| ^~~~~~
nuttx/include/arch/armv8-m/barriers.h:41:9: note: this is the location of the previous definition
41 | #define UP_DMB() arm_dmb()
| ^~~~~~
Signed-off-by: chao an <anchao.archer@bytedance.com >
2025-02-18 09:04:54 -05:00
lipengfei28
6949c82310
arch/arm:use UP_DSB, UP_DMB, UP_ISB as barrier standard API
...
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com >
2025-01-20 20:13:07 +08:00
lipengfei28
2d1af01d44
mem barrier: use UP_DMP UP_DSP as barriers standard API
...
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com >
2025-01-20 20:13:07 +08:00
Alin Jerpelea
344968b8c2
arch/arm: migrate to SPDX identifier
...
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com >
2024-12-06 09:25:23 +08:00
guoshichao
a2fcd9862c
nuttx/arch: remove the custom board check in up_testset implementation
...
the up_testset implementation is common code, should not add custom
board check
Signed-off-by: guoshichao <guoshichao@xiaomi.com >
2024-11-28 15:06:57 +08:00
Peter Bee
48ded21e30
refine driver
...
Signed-off-by: Peter Bee <pbjd97@gmail.com >
2024-11-20 16:32:05 -03:00
Petro Karashchenko
d499ac9d58
nuttx: fix multiple 'FAR', 'CODE' and style issues
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com >
2024-08-25 19:22:15 +08:00
chao an
a0afd38f24
arm/spinlock: up_testset() sould not depends on SMP
...
up_testset() sould not depends on SMP
Signed-off-by: chao an <anchao@lixiang.com >
2024-08-23 20:20:06 +08:00
hujun5
4cb419866f
arch: inline up_testset in arm arm64 riscv xtensa
...
test:
Configuring NuttX and compile:
$ ./tools/configure.sh -l qemu-armv8a:nsh_smp
$ make
Running with qemu
$ qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic \
-machine virt,virtualization=on,gic-version=3 \
-net none -chardev stdio,id=con,mux=on -serial chardev:con \
-mon chardev=con,mode=readline -kernel ./nuttx
Signed-off-by: hujun5 <hujun5@xiaomi.com >
2024-08-21 01:45:10 +08:00
yanghuatao
fecc5091af
toolchain/ghs: Fix SP_DSB warnings
...
"/mnt/yang/qixinwei_vela_warnings/nuttx/include/nuttx/spinlock.h", line 252: warning #76-D:
argument to macro is empty
SP_DSB();
^
"/mnt/yang/qixinwei_vela_warnings/nuttx/include/nuttx/spinlock.h", line 261: warning #76-D:
argument to macro is empty
SP_DMB();
^
"/mnt/yang/qixinwei_vela_warnings/nuttx/include/nuttx/spinlock.h", line 252: warning #76-D:
argument to macro is empty
SP_DSB();
^
"/mnt/yang/qixinwei_vela_warnings/nuttx/include/nuttx/spinlock.h", line 261: warning #76-D:
argument to macro is empty
SP_DMB();
^
"/mnt/yang/qixinwei_vela_warnings/nuttx/include/nuttx/spinlock.h", line 296: warning #76-D:
argument to macro is empty
SP_DSB();
^
Signed-off-by: yanghuatao <yanghuatao@xiaomi.com >
2024-08-11 14:28:12 -03:00
Xiang Xiao
25213c42a5
arch/arm: Remove the empty spinlock.h file
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2022-02-25 09:18:53 +09:00
Alin Jerpelea
c39339a7a8
arch: arm: include: nxstyle fixes
...
nxstyle fixes to pass CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com >
2021-03-22 19:28:38 -07:00
Alin Jerpelea
4daa276903
arch: arm: include: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com >
2021-03-22 19:28:38 -07:00
Masayuki Ishikawa
6158b6b77b
spinlock: Introduce SP_WFE() and SP_SEV()
...
Summary:
- This commit introduces SP_WFE() and SP_SEV() to be used for spinlock
- Also, use wfe/sev instructions for ARMV7-A to reduce power consumption
Impact:
- ARMV7-a SMP only
Testing:
- sabre-6quad:smp (QEMU, dev board)
- maix-bit:smp, esp32-devkitc:smp, spresense:smp sim:smp (compile only)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com >
2020-12-11 05:58:35 -06:00
Xiang Xiao
d078518502
arch/arm: Should include arch/armv8-m/spinlock.h when CONFIG_ARCH_ARMV8M is defined
...
forget in commit 2376d8a266
Author: qiaowei <qiaowei@xiaomi.com >
Date: Wed Apr 22 10:09:50 2020 +0800
Porting arch/armv8-m support
1. Add dsp extension; float point based on hardware and software.
2. Delete folder "iar"
3. Add tool chain for cortex-M23 and cortex-M35p
Signed-off-by: qiaowei <qiaowei@xiaomi.com >
Change-Id: I5bfc78abb025adb0ad4fae37e2b444915f477fe7
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2020-09-22 23:05:29 +01:00
Xiang Xiao
7faf72cabc
arch/arm: Add ARCH_ARMV6M Kconfig to prepare the support of CortexM0+
...
also align with the armv7m implementation
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2020-09-22 23:05:29 +01:00
Juha Niskanen
a762c06ed9
Fix typos and some incorrect comments
...
Author: Alan Carvalho de Assis <acassis@gmail.com >
Run nxstyle against .c and .h files and fix it
Author: Juha Niskanen <juha.niskanen@haltian.com >
Fix typos and some incorrect comments
2020-01-20 09:32:36 -03:00
Juha Niskanen
ebc6f51641
Fix some typos
2019-09-17 10:46:23 -06:00
zhangyuan7
471a18ee4d
arch/arm: Add the initial cortex-a7 archtiecture support
2019-03-19 11:51:29 -06:00
Xiang Xiao
2f208fdde8
arch/Kconfig: Move FPU options to a common place and unify the usage by removing ARCH_CORTEXRxF.
2019-03-19 10:26:15 -06:00
Gregory Nutt
1e59d9dd14
armv7-a, armv7-r, armv7-m: Add atomic read-add-write and read-subtract-write functions.
2018-02-04 12:22:03 -06:00
Gregory Nutt
aae306e942
i.MX6 SMP: Inter-CPU data no saved in a non-cacheable region.
2016-11-26 12:04:02 -06:00
Gregory Nutt
f53e48199f
Simplify and document some macros
2016-11-21 13:12:43 -06:00
Gregory Nutt
558784d06f
Spinlocks: Added capability to provide architecture-specific memory barriers. This was for i.MX6 but does not help with the SMP problems. It is still a good feature.
2016-11-21 11:55:59 -06:00
Gregory Nutt
48fb97e7b5
More of the same cloned typo
2016-10-19 10:11:45 -06:00
Gregory Nutt
5d449e9991
Add spinlock support for ARMv7-A architectures
2016-02-09 12:53:10 -06:00