mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
MPFS: Use NuttX SBI for Kernel mode
This commit is contained in:
@@ -39,7 +39,11 @@
|
|||||||
.extern __trap_vec
|
.extern __trap_vec
|
||||||
|
|
||||||
.section .start, "ax"
|
.section .start, "ax"
|
||||||
|
#ifdef CONFIG_NUTTSBI
|
||||||
|
.global __start_s
|
||||||
|
#else
|
||||||
.global __start
|
.global __start
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: __start
|
* Name: __start
|
||||||
@@ -52,8 +56,11 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_NUTTSBI
|
||||||
|
__start_s:
|
||||||
|
#else
|
||||||
__start:
|
__start:
|
||||||
|
#endif
|
||||||
/* Disable all interrupts in sie */
|
/* Disable all interrupts in sie */
|
||||||
|
|
||||||
csrw sie, zero
|
csrw sie, zero
|
||||||
|
|||||||
@@ -77,6 +77,9 @@ CONFIG_NSH_ARCHINIT=y
|
|||||||
CONFIG_NSH_FILE_APPS=y
|
CONFIG_NSH_FILE_APPS=y
|
||||||
CONFIG_NSH_LINELEN=160
|
CONFIG_NSH_LINELEN=160
|
||||||
CONFIG_NSH_STRERROR=y
|
CONFIG_NSH_STRERROR=y
|
||||||
|
CONFIG_NUTTSBI=y
|
||||||
|
CONFIG_NUTTSBI_MTIMECMP_BASE=0x02004000
|
||||||
|
CONFIG_NUTTSBI_MTIME_BASE=0x0200bff8
|
||||||
CONFIG_PREALLOC_TIMERS=4
|
CONFIG_PREALLOC_TIMERS=4
|
||||||
CONFIG_PSEUDOFS_SOFTLINKS=y
|
CONFIG_PSEUDOFS_SOFTLINKS=y
|
||||||
CONFIG_RAM_SIZE=2097152
|
CONFIG_RAM_SIZE=2097152
|
||||||
|
|||||||
@@ -73,6 +73,13 @@ SECTIONS
|
|||||||
|
|
||||||
_eronly = ABSOLUTE(.);
|
_eronly = ABSOLUTE(.);
|
||||||
|
|
||||||
|
/* No init section */
|
||||||
|
|
||||||
|
.noinit (NOLOAD) : ALIGN(4) {
|
||||||
|
*(.noinit)
|
||||||
|
*(.noinit.*)
|
||||||
|
} > ksram
|
||||||
|
|
||||||
.data : ALIGN(4) {
|
.data : ALIGN(4) {
|
||||||
_sdata = ABSOLUTE(.);
|
_sdata = ABSOLUTE(.);
|
||||||
*(.data .data.*)
|
*(.data .data.*)
|
||||||
|
|||||||
Reference in New Issue
Block a user