File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ PROVIDE(__pre_init = DefaultPreInit);
60
60
/* # Sections */
61
61
SECTIONS
62
62
{
63
- PROVIDE(_ram_start = ORIGIN(RAM) + LENGTH(RAM) );
64
- PROVIDE(_ram_end = ORIGIN(RAM));
65
- PROVIDE(_stack_start = _ram_start );
63
+ PROVIDE(_ram_start = ORIGIN(RAM));
64
+ PROVIDE(_ram_end = ORIGIN(RAM) + LENGTH(RAM) );
65
+ PROVIDE(_stack_start = _ram_end );
66
66
67
67
/* ## Sections in FLASH */
68
68
/* ### Vector table */
Original file line number Diff line number Diff line change @@ -517,8 +517,8 @@ cfg_global_asm! {
517
517
// If enabled, initialize RAM with zeros. This is normally not necessary but might be required
518
518
// on custom hardware.
519
519
#[ cfg( feature = "zero-init-ram" ) ]
520
- "ldr r0, =_ram_end
521
- ldr r1, =_ram_start
520
+ "ldr r0, =_ram_start
521
+ ldr r1, =_ram_end
522
522
movs r2, #0
523
523
0:
524
524
cmp r1, r0
You can’t perform that action at this time.
0 commit comments