incubator-nuttx/binfmt
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
..
libelf arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
libnxflat binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
CMakeLists.txt binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
Kconfig binfmt/elf: Select ARCH_USE_TEXT_HEAP if ARCH_HAVE_TEXT_HEAP 2023-10-27 15:42:02 +09:00
Makefile binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt.h sched/taskfiles: skip unnecessary file open/close operations to improve performance 2023-11-16 07:30:36 -08:00
binfmt_copyactions.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_copyargv.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_coredump.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_dumpmodule.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_exec.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_execmodule.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_execsymtab.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_exit.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_globals.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_initialize.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_loadmodule.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_register.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_unloadmodule.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
binfmt_unregister.c binfmt: migrate to SPDX identifier 2024-09-10 11:34:18 +08:00
builtin.c binfmt/elf: Fix the minor style issue 2023-08-27 18:46:40 -03:00
elf.c binfmt: ELF support load to LMA 2023-09-04 12:23:26 +08:00
nxflat.c binfmt/elf: Fix the minor style issue 2023-08-27 18:46:40 -03:00