mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 04:10:22 +02:00
* the stack pointer on Risc-V points always at the last used position, resolves #39739
This commit is contained in:
parent
34ebeb15ed
commit
1c7626715d
@ -1400,7 +1400,7 @@ begin
|
|||||||
Add(' flash (rx) : ORIGIN = 0x'+IntToHex(flashbase,6)+', LENGTH = 0x'+IntToHex(flashsize,6));
|
Add(' flash (rx) : ORIGIN = 0x'+IntToHex(flashbase,6)+', LENGTH = 0x'+IntToHex(flashsize,6));
|
||||||
Add(' ram (rw!x) : ORIGIN = 0x'+IntToHex(srambase,6)+', LENGTH = 0x'+IntToHex(sramsize,6));
|
Add(' ram (rw!x) : ORIGIN = 0x'+IntToHex(srambase,6)+', LENGTH = 0x'+IntToHex(sramsize,6));
|
||||||
Add('}');
|
Add('}');
|
||||||
Add('_stack_top = 0x' + IntToHex(srambase+sramsize-1,4) + ';');
|
Add('_stack_top = 0x' + IntToHex(srambase+sramsize,4) + ';');
|
||||||
end;
|
end;
|
||||||
Add('SECTIONS');
|
Add('SECTIONS');
|
||||||
Add('{');
|
Add('{');
|
||||||
|
@ -830,7 +830,7 @@ begin
|
|||||||
Add(' flash (rx) : ORIGIN = 0x'+IntToHex(flashbase,6)+', LENGTH = 0x'+IntToHex(flashsize,6));
|
Add(' flash (rx) : ORIGIN = 0x'+IntToHex(flashbase,6)+', LENGTH = 0x'+IntToHex(flashsize,6));
|
||||||
Add(' ram (rw!x) : ORIGIN = 0x'+IntToHex(srambase,6)+', LENGTH = 0x'+IntToHex(sramsize,6));
|
Add(' ram (rw!x) : ORIGIN = 0x'+IntToHex(srambase,6)+', LENGTH = 0x'+IntToHex(sramsize,6));
|
||||||
Add('}');
|
Add('}');
|
||||||
Add('_stack_top = 0x' + IntToHex(srambase+sramsize-1,4) + ';');
|
Add('_stack_top = 0x' + IntToHex(srambase+sramsize,4) + ';');
|
||||||
end;
|
end;
|
||||||
Add('SECTIONS');
|
Add('SECTIONS');
|
||||||
Add('{');
|
Add('{');
|
||||||
|
Loading…
Reference in New Issue
Block a user