rt-thread-official/components
Shell 65c9947225
[libcpu] rv64: support for ARCH_REMAP_KERNEL (#9067)
* [libcpu] support for ARCH_REMAP_KERNEL

These changes introduce support for the ARCH_REMAP_KERNEL configuration,
which isolates kernel space in high virtual address regions. This feature
is necessary to enhance memory protection and management by segregating
user and kernel spaces more effectively.

Changes:
- Updated conditional macros to check for ARCH_REMAP_KERNEL instead of
  ARCH_KERNEL_IN_HIGH_VA in board initialization files to reflect the new
  configuration option.
- Modified qemu-virt64-riscv Kconfig and SConstruct files to include and
  utilize ARCH_REMAP_KERNEL.
- Created a new linker script `link_smart.lds` for smart linking in qemu-virt64-riscv.
- Updated rtconfig.py to use a more flexible execution path setup.
- Enhanced user address space definitions in `lwp_arch.h` to support the
  new virtual address mappings.
- Adjusted kernel memory initialization and mapping logic in `c906/mmu.c`
  and `virt64/mmu.c` to account for high virtual address regions.
- Added Kconfig option to enable ARCH_REMAP_KERNEL for RISCV64 architectures.
- Enhanced memory setup functions to support new mapping scheme, including
  updates to early page table setup and address relocation logic.

These modifications ensure that the system can utilize high memory
addresses for the kernel, improving memory isolation and system stability.

Signed-off-by: Shell <smokewood@qq.com>

* fixup: CI run failed

* bsp: default config without using smart

* fixup: static checks

* restore rt_hw_mmu_kernel_map_init for D1

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-06-18 11:15:59 +08:00
..
dfs [fix]fix tmpfs bug (#8970) 2024-06-13 08:54:02 +08:00
drivers add cromfs start with bootargs cmd 2024-06-18 10:54:32 +08:00
fal [fal]修正类型不匹配 2024-04-12 19:00:41 -04:00
finsh [finsh] remove finsh_syscall_lookup() function declaration 2024-03-31 20:31:35 -04:00
legacy refactor(drivers/usb):replace rtt usb stack with cherryusb (#8799) 2024-06-02 11:20:13 +08:00
libc [bsp/phytium]c++支持,gpio,qspi驱动修改 (#9059) 2024-06-16 15:42:37 +08:00
lwp [libcpu] rv64: support for ARCH_REMAP_KERNEL (#9067) 2024-06-18 11:15:59 +08:00
mm [mm] precise & readable mm fault type (#9047) 2024-06-07 21:34:03 +08:00
mprotect 实现MPU抽象层 (#8080) 2023-10-30 08:24:55 -04:00
net fix specified network card not taking effect with msh's ping error (#8937) 2024-05-16 15:43:50 +08:00
utilities [utest] remove delay for on thread testing (#9053) 2024-06-12 19:48:51 +08:00
vbus 🎯 Sync smart & scheduler codes (#8537) 2024-02-23 17:49:15 +08:00
Kconfig refactor(drivers/usb):replace rtt usb stack with cherryusb (#8799) 2024-06-02 11:20:13 +08:00
SConscript [components] 移除对老版本bsp的lwip版本默认选定 2021-06-28 15:33:14 +08:00