forked from M-Labs/zynq-rs
linker script: fix default ocm memory regions
This commit is contained in:
parent
cc0c4e521e
commit
c5a7f059c2
7
link.x
7
link.x
@ -1,6 +1,6 @@
|
|||||||
ENTRY(_boot_cores);
|
ENTRY(_boot_cores);
|
||||||
|
|
||||||
STACK_SIZE = 0x8000 - 4;
|
STACK_SIZE = 0x8000;
|
||||||
|
|
||||||
/* Provide some defaults */
|
/* Provide some defaults */
|
||||||
PROVIDE(Reset = _boot_cores);
|
PROVIDE(Reset = _boot_cores);
|
||||||
@ -15,7 +15,8 @@ PROVIDE(FIQ = Reset);
|
|||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
/* 256 kB On-Chip Memory */
|
/* 256 kB On-Chip Memory */
|
||||||
OCM : ORIGIN = 0, LENGTH = 0x40000
|
OCM : ORIGIN = 0, LENGTH = 0x30000
|
||||||
|
OCM3 : ORIGIN = 0xFFFF0000, LENGTH = 0x10000
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
@ -59,7 +60,7 @@ SECTIONS
|
|||||||
. += STACK_SIZE;
|
. += STACK_SIZE;
|
||||||
} > OCM
|
} > OCM
|
||||||
__stack_end = ADDR(.stack);
|
__stack_end = ADDR(.stack);
|
||||||
__stack_start = ADDR(.stack) + SIZEOF(.stack);
|
__stack_start = ADDR(.stack) + SIZEOF(.stack) - 4;
|
||||||
|
|
||||||
/DISCARD/ :
|
/DISCARD/ :
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user