Browse Source

* added __stkptr global in cprt0 for powerpc/linux

git-svn-id: trunk@2377 -
tom_at_work 19 years ago
parent
commit
64c8d25dcf
1 changed files with 5 additions and 0 deletions
  1. 5 0
      rtl/linux/powerpc/cprt0.as

+ 5 - 0
rtl/linux/powerpc/cprt0.as

@@ -80,6 +80,9 @@ main_stub:
     lis     11, ___fpc_ret@ha
     lis     11, ___fpc_ret@ha
     stw     1, ___fpc_ret@l(11)
     stw     1, ___fpc_ret@l(11)
 
 
+    lis     11, __stkptr@ha
+    stw     1, __stkptr@l(11)
+
     bl      PASCALMAIN
     bl      PASCALMAIN
 
 
     .globl  _haltproc
     .globl  _haltproc
@@ -108,6 +111,8 @@ ___fpc_ret:                            /* return address to libc */
     .long   0
     .long   0
 
 
 .text
 .text
+    .comm __stkptr, 4
+
     .comm operatingsystem_parameter_envp, 4
     .comm operatingsystem_parameter_envp, 4
     .comm operatingsystem_parameter_argc, 4
     .comm operatingsystem_parameter_argc, 4
     .comm operatingsystem_parameter_argv, 4
     .comm operatingsystem_parameter_argv, 4