incubator-nuttx/sched
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
..
addrenv sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
clock clock: refactor clock_systime_timespec() & clock_systime_ticks() 2024-09-12 18:14:39 +08:00
environ sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
event sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
group sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
init sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
instrument sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
irq sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
misc arch: use up_current_regs/up_set_current_regs replace CURRENT_REGS 2024-09-13 23:18:58 +08:00
module sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
mqueue clock: take clock_abstime2ticks() as MACRO 2024-09-12 18:14:39 +08:00
paging sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
pthread clock: Replace all ts and tick conversion functions 2024-09-12 18:14:39 +08:00
sched usleep: use div_const to optimize the usleep 2024-09-12 18:14:39 +08:00
semaphore clock: take clock_abstime2ticks() as MACRO 2024-09-12 18:14:39 +08:00
signal usleep: use div_const to optimize the usleep 2024-09-12 18:14:39 +08:00
task sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
timer clock: take clock_abstime2ticks() as MACRO 2024-09-12 18:14:39 +08:00
tls sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
wdog sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
wqueue sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
CMakeLists.txt sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00
Kconfig
Makefile sched: migrate to SPDX identifier 2024-09-12 01:10:14 +08:00