nuttx/libs/libc
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 libs/libc: There is no need to use sched_[un]lock 2024-10-12 13:28:23 +08:00
assert libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
audio libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
bin libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
builtin libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
ctype Fix ctypes.h locale macro 2024-10-08 08:13:42 +08:00
dirent cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
dlfcn nuttx/libc:Add _dl_find_object and dl_iterate_phdr function. 2024-10-15 12:35:54 +08:00
errno libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
eventfd libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
fdt libs/libc/fdt/Make.defs: cannot move due to directory not empty bugfix 2024-10-09 15:42:17 +08:00
fixedmath libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
gdbstub cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
gnssutils libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
grp libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
hex2bin libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
inttypes libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
kbin libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
libgen libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
locale cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
lzf libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
machine setjmp: fix setjmp returns 0 when calling longjmp with 0 as the second argument 2024-10-15 12:36:19 +08:00
misc libc: add CRC-8-ROHC support 2024-10-13 03:09:26 +08:00
modlib modlib:so need export symbol, exec elf not need 2024-10-15 03:20:05 +08:00
net cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
netdb cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
obstack cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
pthread cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
pwd cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
queue libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
regex libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
search libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
semaphore nuttx/syscall: export nxsem_getprioceiling and nxsem_setprioceiling via syscall 2024-10-12 09:50:54 +08:00
signal cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
spawn cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
stdio vsprintf:fix bug when print int64 0x8000000000000000 2024-10-15 08:14:59 +02:00
stdlib libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
stream cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
string libc: add nx_strdup() & nx_strndup() support 2024-10-15 01:16:48 +08:00
symtab libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
syslog syslog: support syslog redirection to sched_note 2024-10-11 01:30:11 +08:00
termios libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
time sched: add up_this_task and up_change_task macro stub 2024-10-15 15:25:55 +08:00
tls libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
uio libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
unistd cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
userfs libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
uuid lib_uuid_create: try use hardware random number generators first 2024-10-13 02:44:25 +08:00
wchar libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
wctype libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
wqueue cmake:refine nuttx cmake build system fix CMake build missing part 2024-10-13 02:25:06 +08:00
zoneinfo libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
.gitignore libfdt: modify makefile 2023-08-26 17:07:02 +08:00
CMakeLists.txt libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Kconfig nuttx/uorb: Rename GPS to GNSS 2024-09-19 03:44:49 +08:00
libc.csv libc.csv: Add more missing interface 2024-09-28 09:11:10 +08:00
libc.h libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Makefile libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00