rt-thread-official/libcpu/risc-v/virt64
Shell c78a19ed26 feat: libcpu/risc-v: unify low-level bringups
This patch consolidates the separated architecture-specific code for
rv64 (virt64 and c906) under a more unified approach. The changes
aim to enhance maintainability and code reuse, reducing duplication
between these two architectures while adding small improvements in
porting compatibility.

Changes:
- Modified build scripts (SConscript) for both virt64 and c906 to
  remove ASID and vector dependencies when not required.
- Updated c906's sbi.c and sbi.h to use standard integer types
  (uint32_t) and include the missing <stdint.h> header.
- Unified inline function declaration for `sbi_call` across both
  c906 and virt64 using `rt_inline`.
- Disabled FPU and vector in c906's startup assembly file, aligning it
  with the virt64 handling.
- Corrected syscall handler type definitions in c906 for consistency.

Signed-off-by: Shell <smokewood@qq.com>
2024-09-11 18:06:51 -04:00
..
SConscript feat: libcpu/risc-v: unify low-level bringups 2024-09-11 18:06:51 -04:00
asid.c feat: libcpu/risc-v: unify mmu related works 2024-09-11 18:06:51 -04:00
asm-generic.h [libcpu][component][debug] add debug info for gdb (#7033) 2023-05-14 23:48:16 +08:00
backtrace.c feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
cache.c [rt-smart] move sys_cacheflush to lwp_syscall.c (#7048) 2023-03-17 15:11:38 +08:00
cache.h [ci] fix errors under strick compiling mode 2024-02-20 08:39:05 +08:00
context_gcc.S feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
cpuport.c feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
cpuport.h feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
cpuport_gcc.S feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
encoding.h feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
ext_context.h feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
interrupt.c [smart][risc-v/libcpu] port rv64 cpu code (#6704) 2022-12-10 22:16:42 +08:00
interrupt.h feat: kernel/libcpu: fit into ilp32d 2024-09-01 15:12:34 -04:00
interrupt_gcc.S feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
io.h feat: libcpu/risc-v: unify interrupt & IO on rv64 2024-09-11 18:06:51 -04:00
mmu.c feat: libcpu/risc-v: unify mmu related works 2024-09-11 18:06:51 -04:00
mmu.h feat: kernel/libcpu: fit into ilp32d 2024-09-01 15:12:34 -04:00
opcode.h feat: libcpu/risc-v: unify interrupt & IO on rv64 2024-09-11 18:06:51 -04:00
plic.c feat: libcpu/risc-v: unify interrupt & IO on rv64 2024-09-11 18:06:51 -04:00
plic.h feat: libcpu/risc-v: unify interrupt & IO on rv64 2024-09-11 18:06:51 -04:00
riscv.h feat: kernel/libcpu: fit into ilp32d 2024-09-01 15:12:34 -04:00
riscv_io.h feat: libcpu/risc-v: unify interrupt & IO on rv64 2024-09-11 18:06:51 -04:00
riscv_mmu.c feat: libcpu/risc-v: unify mmu related works 2024-09-11 18:06:51 -04:00
riscv_mmu.h feat: libcpu/risc-v: unify mmu related works 2024-09-11 18:06:51 -04:00
rvv_context.h feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
sbi.c [rt-smart] kernel virtual memory management layer (#6809) 2023-01-08 21:08:55 -05:00
sbi.h feat: libcpu/risc-v: unify low-level bringups 2024-09-11 18:06:51 -04:00
stack.h feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
stackframe.h feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
start.c [rt-smart] kernel virtual memory management layer (#6809) 2023-01-08 21:08:55 -05:00
startup_gcc.S feat: libcpu/risc-v: unify low-level bringups 2024-09-11 18:06:51 -04:00
syscall_c.c feat: kernel/libcpu: fit into ilp32d 2024-09-01 15:12:34 -04:00
tick.c [libcpu/rv64] feat: unify tick.c 2024-07-15 12:06:39 +08:00
tick.h [libcpu/rv64] feat: unify tick.c 2024-07-15 12:06:39 +08:00
tlb.h [rt-smart] porting c906 and D1s to mm (#6848) 2023-01-16 08:24:03 +08:00
trap.c feat: libcpu/risc-v: unify interrupt & IO on rv64 2024-09-11 18:06:51 -04:00
vector_encoding.h feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00
vector_gcc.S feat: libcpu/risc-v: unify context on c906, virt64 2024-09-11 18:06:51 -04:00