nuttx/arch/sparc/include
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
..
bm3803 Fix nuttx coding style 2023-07-14 20:48:24 +08:00
bm3823 Fix nuttx coding style 2023-07-14 20:48:24 +08:00
s698pm Fix nuttx coding style 2023-07-14 20:48:24 +08:00
sparc_v8 Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
.gitignore enable sparc's daily ci and eliminate some warnings 2022-02-03 14:43:21 +01:00
arch.h arch: Move up_getsp from arch.h to irq.h 2022-07-01 10:44:55 -03:00
elf.h Fix nuttx coding style 2023-07-14 20:48:24 +08:00
inttypes.h enable sparc's daily ci and eliminate some warnings 2022-02-03 14:43:21 +01:00
irq.h arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
limits.h arch: Define WCHAR_[MIN|MAX] in arch/include/limits.h 2022-06-03 22:25:49 +03:00
spinlock.h Update arch/sparc/include/spinlock.h 2022-10-18 00:55:30 +08:00
syscall.h arch: save user context in assert common code 2022-12-24 13:02:56 +08:00
types.h types.h: fix windows build error 2024-08-14 22:36:57 +08:00