mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
boards/risc-v/mpfs/icicle: Add USRIO area for userspace IO mappings
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Alan C. Assis
parent
7470fd9274
commit
d62e500940
@@ -67,6 +67,11 @@
|
|||||||
#define USRAM_START (uintptr_t)__usram_start
|
#define USRAM_START (uintptr_t)__usram_start
|
||||||
#define USRAM_SIZE (uintptr_t)__usram_size
|
#define USRAM_SIZE (uintptr_t)__usram_size
|
||||||
|
|
||||||
|
/* User IO */
|
||||||
|
|
||||||
|
#define USRIO_START (uintptr_t)__usrio_start
|
||||||
|
#define USRIO_SIZE (uintptr_t)__usrio_size
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Data
|
* Public Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -97,4 +102,9 @@ extern uint8_t __uflash_size[];
|
|||||||
extern uint8_t __usram_start[];
|
extern uint8_t __usram_start[];
|
||||||
extern uint8_t __usram_size[];
|
extern uint8_t __usram_size[];
|
||||||
|
|
||||||
|
/* User IO (R) */
|
||||||
|
|
||||||
|
extern uint8_t __usrio_start[];
|
||||||
|
extern uint8_t __usrio_size[];
|
||||||
|
|
||||||
#endif /* __BOARDS_RISC_V_MPFS_ICICLE_INCLUDE_BOARD_MEMORYMAP_H */
|
#endif /* __BOARDS_RISC_V_MPFS_ICICLE_INCLUDE_BOARD_MEMORYMAP_H */
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ __uflash_start = ORIGIN(uflash);
|
|||||||
__uflash_size = LENGTH(uflash);
|
__uflash_size = LENGTH(uflash);
|
||||||
__usram_start = ORIGIN(usram);
|
__usram_start = ORIGIN(usram);
|
||||||
__usram_size = LENGTH(usram);
|
__usram_size = LENGTH(usram);
|
||||||
|
__usrio_start = ORIGIN(usrio);
|
||||||
|
__usrio_size = LENGTH(usrio);
|
||||||
|
|
||||||
/* Provide the kernel boundaries as well */
|
/* Provide the kernel boundaries as well */
|
||||||
|
|
||||||
|
|||||||
@@ -27,4 +27,6 @@ MEMORY
|
|||||||
|
|
||||||
ksram (rwx) : ORIGIN = 0x80080000, LENGTH = 256K /* w/ cache */
|
ksram (rwx) : ORIGIN = 0x80080000, LENGTH = 256K /* w/ cache */
|
||||||
usram (rwx) : ORIGIN = 0x800C0000, LENGTH = 256K /* w/ cache */
|
usram (rwx) : ORIGIN = 0x800C0000, LENGTH = 256K /* w/ cache */
|
||||||
|
|
||||||
|
usrio (r) : ORIGIN = 0x80100000, LENGTH = 32K
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user