MPFS: Use NuttX SBI for Kernel mode

This commit is contained in:
Ville Juven 2022-05-20 10:00:21 +03:00 committed by Xiang Xiao
parent 2525c10729
commit 0a9279f672
3 changed files with 18 additions and 1 deletions

View file

@ -39,7 +39,11 @@
.extern __trap_vec
.section .start, "ax"
#ifdef CONFIG_NUTTSBI
.global __start_s
#else
.global __start
#endif
/****************************************************************************
* Name: __start
@ -52,8 +56,11 @@
*
****************************************************************************/
#ifdef CONFIG_NUTTSBI
__start_s:
#else
__start:
#endif
/* Disable all interrupts in sie */
csrw sie, zero

View file

@ -77,6 +77,9 @@ CONFIG_NSH_ARCHINIT=y
CONFIG_NSH_FILE_APPS=y
CONFIG_NSH_LINELEN=160
CONFIG_NSH_STRERROR=y
CONFIG_NUTTSBI=y
CONFIG_NUTTSBI_MTIMECMP_BASE=0x02004000
CONFIG_NUTTSBI_MTIME_BASE=0x0200bff8
CONFIG_PREALLOC_TIMERS=4
CONFIG_PSEUDOFS_SOFTLINKS=y
CONFIG_RAM_SIZE=2097152

View file

@ -73,6 +73,13 @@ SECTIONS
_eronly = ABSOLUTE(.);
/* No init section */
.noinit (NOLOAD) : ALIGN(4) {
*(.noinit)
*(.noinit.*)
} > ksram
.data : ALIGN(4) {
_sdata = ABSOLUTE(.);
*(.data .data.*)