incubator-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 vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
binfs cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
cromfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
driver fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
event fs: support VFS-based named event group 2024-10-09 01:40:00 +08:00
fat fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
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 fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
mnemofs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
mount zipfs:zipfs not need mtd drivers 2024-10-08 19:55:09 +08:00
mqueue mq: correct inode release in mq_inode_release() 2024-10-09 10:17:24 +08:00
nfs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
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 fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
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 fs/semaphore: fix a minor issue with goto label 2024-10-08 23:21:54 +08:00
shm fs/inode: remove unnecessary return value for inode_addrefs 2024-10-02 01:56:46 +08:00
smartfs smartfs: return -ENOTTY if ioctl command is not found 2024-10-05 20:52:31 +08:00
socket fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
spiffs fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
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/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
Kconfig fs: support VFS-based named event group 2024-10-09 01:40:00 +08:00
Makefile fs: support VFS-based named event group 2024-10-09 01:40:00 +08:00
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 fs: add fs_heap, support shm/tmpfs/pseudofile with indepent heap 2024-08-25 22:12:37 +08:00