mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 23:05:20 +00:00
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:
parent
f5021021ae
commit
c2132bb88e
3 changed files with 3 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue