From 56398dd5d7ae5d96f20389020fe9339dcb63623c Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 2 Oct 2007 18:59:58 +0000 Subject: 2007-10-02 Markus Deuling * spu/crt0.S: Initialize __ea_local_store (EA address of the LS) via register 6. --- libgloss/spu/crt0.S | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libgloss/spu') diff --git a/libgloss/spu/crt0.S b/libgloss/spu/crt0.S index 76d8a9949..663834ad4 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 -- cgit v1.2.3