nuttx/fs
hujun5 a567148888 sched: add up_this_task and up_change_task macro stub
reason:
We can utilize percpu storage to hold information about the
current running task. If we intend to implement this feature, we would
need to define two macros that help us manage this percpu information
effectively.

up_this_task: This macro is designed to read the contents of the percpu
              register to retrieve information about the current
              running task.This allows us to quickly access
              task-specific data without having to disable interrupts,
              access global variables and obtain the current cpu index.

up_update_task: This macro is responsible for updating the contents of
                the percpu register.It is typically called during
                initialization or when a context switch occurs to ensure
                that the percpu register reflects the information of the
                newly running task.

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-10-15 15:25:55 +08:00
..
aio
binfs cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
cromfs
driver fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
event
fat
hostfs fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
inode fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
littlefs littlefs:remove the '/' in the end of relpath in mkdir 2024-10-11 15:46:02 +08:00
mmap
mnemofs
mount
mqueue mq: correct inode release in mq_inode_release() 2024-10-09 10:17:24 +08:00
nfs
notify fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
nxffs fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
partition
procfs sched: add up_this_task and up_change_task macro stub 2024-10-15 15:25:55 +08:00
romfs romfs:extend romfs to enable write part4 2024-10-11 10:42:20 +08:00
rpmsgfs fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
semaphore
shm
smartfs
socket
spiffs
tmpfs fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
unionfs fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
userfs cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
v9fs virtio_9p.c: fix compile error in OpenAMP upgrade feature reflow to dev 2024-10-09 23:32:58 +08:00
vfs fs/readlink: fix minor issue 2024-10-14 18:08:14 -03:00
zipfs cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
CMakeLists.txt
fs_heap.c fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
fs_heap.h fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
fs_initialize.c
Kconfig
Makefile