Explorar o código

Fix stack pointer offset.

git-svn-id: trunk@32499 -
Jeppe Johansen %!s(int64=10) %!d(string=hai) anos
pai
achega
f5eaf7ddde
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      compiler/systems/t_embed.pas

+ 1 - 1
compiler/systems/t_embed.pas

@@ -773,7 +773,7 @@ begin
           Add('  lock      (rw!x) : ORIGIN = 0x830000, LENGTH = 1K');
           Add('  signature (rw!x) : ORIGIN = 0x840000, LENGTH = 1K');
           Add('}');
-          Add('_stack_top = 0x' + IntToHex(sramsize-1,4) + ';');
+          Add('_stack_top = 0x' + IntToHex(srambase+sramsize-1,4) + ';');
         end;
       Add('SECTIONS');
       Add('{');