incubator-nuttx/libs/libc
hujun5 908df725ad arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS
reason:
1 On different architectures, we can utilize more optimized strategies
  to implement up_current_regs/up_set_current_regs.
eg. use interrupt registersor percpu registers.

code size
before
    text    data     bss     dec     hex filename
 262848   49985   63893  376726   5bf96 nuttx

after
       text    data     bss     dec     hex filename
 262844   49985   63893  376722   5bf92 nuttx

size change -4

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-09-13 23:18:58 +08:00
..
aio
assert greenhills: fix the no-lto link warning 2024-08-24 18:57:40 +08:00
audio
bin
builtin
ctype
dirent nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
dlfcn dlfcn: Fix indent issue in lib_dlopen.c 2024-07-27 03:11:39 +08:00
errno
eventfd
fdt
fixedmath
gdbstub arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
gpsutils
grp
hex2bin
inttypes nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
kbin
libgen basename: return path address instead of "/" when path="/" 2024-08-22 01:50:37 +08:00
locale nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
lzf nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
machine greenhills: add the "__sync_synchronize" func impl 2024-08-24 18:07:12 +08:00
misc libc/misc/crc32: crc32 add slow mode, optional decrease size 2024-09-12 16:17:21 +02:00
modlib nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
net netlib/route: add length for add/del route-func to reduce caller stack usage 2024-08-26 01:54:10 +08:00
netdb netdb: Make NETDB_DNSSERVER_NAMESERVERS effective for NETDB_RESOLVCONF 2024-09-09 19:47:09 +08:00
obstack libs/libc/obstack: correctly append null byte at the end of string 2024-08-21 10:21:50 -03:00
pthread pthread/realtime: export interfaces about pthread ceiling priority 2024-09-10 01:26:31 +08:00
pwd build: Fix libc/pwd CMakeLists.txt 2024-08-07 08:45:19 +08:00
queue libs/libc/queue: inline queue list to improve performance 2024-09-08 18:13:33 +08:00
regex
sched clock: Replace all ts and tick conversion functions 2024-09-12 18:14:39 +08:00
search hcreate: add alloc/free func hook for user to deallocate memory 2024-08-22 20:25:30 +08:00
semaphore semaphore: export priority ceiling interfaces in semaphore 2024-09-10 01:26:31 +08:00
signal
spawn cmake: fix compilation 2024-06-02 09:27:36 -03:00
stdio nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
stdlib nuttx: resolve various 'FAR' and 'CODE' issues 2024-08-26 10:21:03 +08:00
stream stream/syslograw: remove support for iob buffer in syslog 2024-09-13 09:14:56 +08:00
string memset:optimizate speed. 2024-08-27 00:21:27 +08:00
symtab
syslog
termios
time usleep: use div_const to optimize the usleep 2024-09-12 18:14:39 +08:00
tls
uio
unistd sys/resource: Add RLIMIT_RTPRIO and RLIMIT_RTTIME definition 2024-09-13 16:08:25 +08:00
userfs
uuid nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
wchar libc:Add macro restrictions to code that uses floating point numbers 2024-08-21 13:33:45 +08:00
wctype
wqueue clock: Replace all ts and tick conversion functions 2024-09-12 18:14:39 +08:00
zoneinfo
.gitignore
CMakeLists.txt
Kconfig libs/libc/queue: inline queue list to improve performance 2024-09-08 18:13:33 +08:00
Makefile
libc.csv pthread/realtime: export interfaces about pthread ceiling priority 2024-09-10 01:26:31 +08:00
libc.h