OSDN Git Service

2007-10-02 Markus Deuling <deuling@de.ibm.com>
authorjjohnstn <jjohnstn>
Tue, 2 Oct 2007 18:59:58 +0000 (18:59 +0000)
committerjjohnstn <jjohnstn>
Tue, 2 Oct 2007 18:59:58 +0000 (18:59 +0000)
        * spu/crt0.S: Initialize __ea_local_store (EA address of the LS)
          via register 6.

libgloss/ChangeLog
libgloss/spu/crt0.S

index 4f4d32c..98e8b0b 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-02  Markus Deuling  <deuling@de.ibm.com>
+
+       * spu/crt0.S: Initialize __ea_local_store (EA address of the LS)
+         via register 6.
+
 2007-10-01  Markus Deuling  <deuling@de.ibm.com>
 
        * spu/Makefile.in: add dependencies for crt files.
index 76d8a99..663834a 100644 (file)
@@ -50,11 +50,16 @@ POSSIBILITY OF SUCH DAMAGE.
 #define TAGMASK                        1
 #endif
 
+.comm __ea_local_store,16,16
+
 .text
 .global _start
 .type _start, @function
        
 _start:
+       /* Save the local store base from $6.  */
+       stqr $6, __ea_local_store
+
 #ifdef _STD_MAIN
        /* 
         * Copy the argument vector region from EA to LS.  The DMA