nuttx/arch
hujun5 f7843e2198 sched:remove g_cpu_schedlock g_cpu_irqsetlock g_cpu_locksetlock
we can use g_cpu_lockset to determine whether we are currently in the scheduling lock,
and all accesses and modifications to g_cpu_lockset, g_cpu_irqlock, g_cpu_irqset
are in the critical section, so we can directly operate on it.

test:
We can use qemu for testing.

compiling
make distclean -j20; ./tools/configure.sh -l qemu-armv8a:nsh_smp ;make -j20
running
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-06-21 11:11:07 +09:00
..
arm sched:remove g_cpu_schedlock g_cpu_irqsetlock g_cpu_locksetlock 2024-06-21 11:11:07 +09:00
arm64 arm64/qemu: The PSCI can be configured with CONFIG_ARM64_PSCI 2024-06-20 09:41:28 +08:00
avr Add basic support for locales in order to C++ streams to build and work for simple cases (POSIX / C locale). 2024-04-29 17:34:10 +08:00
ceva Add basic support for locales in order to C++ streams to build and work for simple cases (POSIX / C locale). 2024-04-29 17:34:10 +08:00
dummy
hc stack: update up_get_intstackbase API to support cpu id 2024-04-09 16:59:00 -03:00
mips up_putc: int up_putc, enter_critical_section may be called 2024-05-09 13:45:02 +08:00
misoc fix nxstyle 2024-05-13 22:24:36 +02:00
or1k up_putc: int up_putc, enter_critical_section may be called 2024-05-09 13:45:02 +08:00
renesas stack: update up_get_intstackbase API to support cpu id 2024-04-09 16:59:00 -03:00
risc-v riscv_vector.S: Align trap vector to 64 byte 2024-06-21 03:02:59 +08:00
sim sim/net: Support to set the MTU of the sim netdevice. 2024-06-02 09:31:37 -03:00
sparc up_putc: int up_putc, enter_critical_section may be called 2024-05-09 13:45:02 +08:00
tricore arch/tricore: update the function prototype as mainline 2024-06-12 23:36:11 +08:00
x86 stack: update up_get_intstackbase API to support cpu id 2024-04-09 16:59:00 -03:00
x86_64 cmake:bugfix CMake compilation options settings should not use strings 2024-05-30 10:02:10 -03:00
xtensa ESP32S3 bootloader.mk file has a typo error. In the file CONFIG_ESP32S2_MCUBOOT_VERSION config variable is declared, while the correct config variable for esp32s3 bootloader.mk file is CONFIG_ESP32S3_MCUBOOT_VERSION which is defined in the .config file when the config is generated for ESP32S3-devkit board. 2024-06-16 23:36:54 +08:00
z16 up_putc: int up_putc, enter_critical_section may be called 2024-05-09 13:45:02 +08:00
z80 up_putc: int up_putc, enter_critical_section may be called 2024-05-09 13:45:02 +08:00
CMakeLists.txt build/cmake: add initial KERNEL mode support 2024-03-15 16:21:23 +08:00
Kconfig Kconfig: move LTO options to Build Setup menu 2024-06-02 09:26:35 -03:00