ingenic: crt0.S fixes #3

Hopefyly this time is the final one.

Change-Id: I386964f407ca98499e9a482507e4d5dfa02ee891
This commit is contained in:
Marcin Bukat 2014-03-04 10:28:02 +01:00
parent 7066197ccc
commit 2f21f77ade

View file

@ -144,9 +144,9 @@ _iram_loop:
la t0, _edata la t0, _edata
la t1, _end la t1, _end
_bss_loop: _bss_loop:
addiu t1, 4 addiu t0, 4
bne t0, t1, _bss_loop bne t0, t1, _bss_loop
sw zero, -4(t1) sw zero, -4(t0)
/* /*
---------------------------------------------------- ----------------------------------------------------
@ -155,13 +155,12 @@ _bss_loop:
*/ */
la sp, stackend la sp, stackend
la t0, stackbegin la t0, stackbegin
move t1, sp
li t2, 0xDEADBEEF li t2, 0xDEADBEEF
_stack_loop: _stack_loop:
addiu t1, 4 addiu t0, 4
bne t0, t1, _stack_loop bne t0, sp, _stack_loop
sw t2, -4(t1) sw t2, -4(t0)
/* /*
---------------------------------------------------- ----------------------------------------------------