nuttx/arch/mips/src/mips32
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
..
fork.S libs/libc/fork: add lib_fork implementation 2023-07-26 10:41:52 +02:00
Kconfig sched/task/fork: add fork implementation 2023-07-12 02:27:37 +08:00
mips32-memorymap.h
mips_cache.S
mips_copystate.c
mips_doirq.c arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
mips_fork.c libs/libc/fork: add lib_fork implementation 2023-07-26 10:41:52 +02:00
mips_fork.h sched/task/fork: add fork implementation 2023-07-12 02:27:37 +08:00
mips_initialstate.c
mips_irq.c
mips_registerdump.c arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
mips_saveusercontext.c
mips_schedulesigaction.c arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
mips_sigdeliver.c
mips_swint0.c arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
mips_switchcontext.c arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
mips_syscall0.S
Toolchain.defs arch: Add --whole-archive linker option for some of architectures 2024-06-28 02:31:40 +08:00