nuttx/arch/mips/src/common
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
..
Kconfig
mips_allocateheap.c arch/mips: Remove FAR from chip and board folder 2022-04-17 18:42:38 +03:00
mips_createstack.c arch/mips: Remove FAR from chip and board folder 2022-04-17 18:42:38 +03:00
mips_etherstub.c arch: rename arch special function name 2022-11-22 16:27:56 +08:00
mips_exit.c sched: move nxsched_dumponexit() to task_exithook 2024-06-30 17:30:42 +08:00
mips_getintstack.c stack: update up_get_intstackbase API to support cpu id 2024-04-09 16:59:00 -03:00
mips_idle.c arch: mips: Author Gregory Nutt: update licenses to Apache 2021-03-31 08:48:33 -07:00
mips_initialize.c arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
mips_internal.h arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
mips_lowputs.c arch: rename arch special function name 2022-11-22 16:27:56 +08:00
mips_mdelay.c arch: mips: Author Gregory Nutt: update licenses to Apache 2021-03-31 08:48:33 -07:00
mips_modifyreg8.c arch: Merge up_arch.h into up_internal.h 2022-03-14 09:32:17 +02:00
mips_modifyreg16.c arch: Merge up_arch.h into up_internal.h 2022-03-14 09:32:17 +02:00
mips_modifyreg32.c arch: Merge up_arch.h into up_internal.h 2022-03-14 09:32:17 +02:00
mips_nputs.c up_nputs: fix AddressSanitizer: global-buffer-overflow problem 2022-09-01 11:51:48 +08:00
mips_releasestack.c arch/mips: Remove FAR from chip and board folder 2022-04-17 18:42:38 +03:00
mips_stackframe.c arch/mips: Remove FAR from chip and board folder 2022-04-17 18:42:38 +03:00
mips_udelay.c arch: mips: Author Gregory Nutt: update licenses to Apache 2021-03-31 08:48:33 -07:00
mips_usestack.c arch: Move STACK_ALIGNMENT definition to up_internal.h 2022-02-28 15:05:41 +08:00