risc-v/rv-virt: use RAM_START in ld.script

This revises FLAT build ld.script so that to use CONFIG_RAM_START
instead of hard coded address to increase flexibility.

Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
Yanfeng Liu 2024-07-26 10:02:19 +08:00 committed by Alin Jerpelea
parent f5021021ae
commit c2132bb88e
3 changed files with 3 additions and 7 deletions

View File

@ -52,7 +52,7 @@ CONFIG_NSH_FILEIOSIZE=512
CONFIG_NSH_READLINE=y
CONFIG_PATH_INITIAL="/system/bin"
CONFIG_RAM_SIZE=33554432
CONFIG_RAM_START=0x80000000
CONFIG_RAM_START=0x80200000
CONFIG_READLINE_CMD_HISTORY=y
CONFIG_RISCV_SEMIHOSTING_HOSTFS=y
CONFIG_RR_INTERVAL=200

View File

@ -55,7 +55,7 @@ CONFIG_NSH_FILEIOSIZE=512
CONFIG_NSH_READLINE=y
CONFIG_PATH_INITIAL="/system/bin"
CONFIG_RAM_SIZE=33554432
CONFIG_RAM_START=0x80000000
CONFIG_RAM_START=0x80200000
CONFIG_READLINE_CMD_HISTORY=y
CONFIG_RISCV_SEMIHOSTING_HOSTFS=y
CONFIG_RR_INTERVAL=200

View File

@ -20,11 +20,7 @@
#include <nuttx/config.h>
#ifdef CONFIG_ARCH_USE_S_MODE
#define TEXT_ADDR 0x80200000
#else
#define TEXT_ADDR 0x80000000
#endif
#define TEXT_ADDR CONFIG_RAM_START
SECTIONS
{