Skip to content

Commit b491838

Browse files
committed
nios2: rename default RAM region from 'SRAM' to 'RAM'
It's useful for the default RAM region to have a uniform name across architectures so higher-level build processes do not need to have their own awareness of the names. Since NIOS2 uniformly uses 'SRAM', change it to 'RAM' to match most other architectures. Signed-off-by: Peter Marheine <[email protected]>
1 parent ab7e95c commit b491838

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

include/zephyr/arch/nios2/linker.ld

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@
4242

4343
#ifdef CONFIG_XIP
4444
#define ROMABLE_REGION FLASH
45-
#define RAMABLE_REGION SRAM
4645
#else
47-
#define ROMABLE_REGION SRAM
48-
#define RAMABLE_REGION SRAM
46+
#define ROMABLE_REGION RAM
4947
#endif
48+
#define RAMABLE_REGION RAM
5049

5150
#ifdef CONFIG_XIP
5251

@@ -56,7 +55,7 @@ MEMORY
5655
{
5756
RESET (rx) : ORIGIN = _RESET_VECTOR, LENGTH = 0x20
5857
FLASH (rx) : ORIGIN = _RESET_VECTOR + 0x20 , LENGTH = (_ROM_SIZE - 0x20)
59-
SRAM (wx) : ORIGIN = _EXC_VECTOR, LENGTH = _RAM_SIZE - (_EXC_VECTOR - _RAM_ADDR)
58+
RAM (wx) : ORIGIN = _EXC_VECTOR, LENGTH = _RAM_SIZE - (_EXC_VECTOR - _RAM_ADDR)
6059
/* Used by and documented in include/linker/intlist.ld */
6160
IDT_LIST (wx) : ORIGIN = 0xFFFFF7FF, LENGTH = 2K
6261

@@ -67,7 +66,7 @@ MEMORY
6766
MEMORY
6867
{
6968
RESET (wx) : ORIGIN = _RESET_VECTOR, LENGTH = 0x20
70-
SRAM (wx) : ORIGIN = _EXC_VECTOR, LENGTH = _RAM_SIZE - (_EXC_VECTOR - _RAM_ADDR)
69+
RAM (wx) : ORIGIN = _EXC_VECTOR, LENGTH = _RAM_SIZE - (_EXC_VECTOR - _RAM_ADDR)
7170

7271
/* Used by and documented in include/linker/intlist.ld */
7372
IDT_LIST (wx) : ORIGIN = 0xFFFFF7FF, LENGTH = 2K

0 commit comments

Comments
 (0)