aboutsummaryrefslogtreecommitdiff
path: root/libgloss/spu
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-10-02 18:59:58 +0000
committerJeff Johnston <jjohnstn@redhat.com>2007-10-02 18:59:58 +0000
commit56398dd5d7ae5d96f20389020fe9339dcb63623c (patch)
treee13efb55c8e5009ccee5ec7eca9b19851f94467e /libgloss/spu
parentbd6f74fda8fc7f86400260feeb0457da0fb6532a (diff)
downloadnewlib-56398dd5d7ae5d96f20389020fe9339dcb63623c.zip
newlib-56398dd5d7ae5d96f20389020fe9339dcb63623c.tar.gz
newlib-56398dd5d7ae5d96f20389020fe9339dcb63623c.tar.bz2
2007-10-02 Markus Deuling <deuling@de.ibm.com>
* spu/crt0.S: Initialize __ea_local_store (EA address of the LS) via register 6.
Diffstat (limited to 'libgloss/spu')
-rw-r--r--libgloss/spu/crt0.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgloss/spu/crt0.S b/libgloss/spu/crt0.S
index 76d8a99..663834a 100644
--- a/libgloss/spu/crt0.S
+++ b/libgloss/spu/crt0.S
@@ -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