2009-02-27 Daniel Hellstrom <daniel@gaisler.com>

PR 1386/bsps
	* shared/start.S: Stack space not correctly initialized. Causes
	failures on unoptimized applications.
This commit is contained in:
Joel Sherrill
2009-02-27 15:33:08 +00:00
parent 5d01560bb4
commit 08ed3c3ece
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2009-02-27 Daniel Hellstrom <daniel@gaisler.com>
PR 1386/bsps
* shared/start.S: Stack space not correctly initialized. Causes
failures on unoptimized applications.
2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/bspgetworkarea.c: Change size_t to ssize_t on * shared/bspgetworkarea.c: Change size_t to ssize_t on

View File

@@ -223,7 +223,7 @@ SYM(hard_reset):
set (SYM(rdb_start)), %g6 ! End of work-space area set (SYM(rdb_start)), %g6 ! End of work-space area
st %sp, [%g6] st %sp, [%g6]
sub %g6, 4, %sp ! stack starts at end of RAM - 4 sub %sp, 4, %sp ! stack starts at end of RAM - 4
andn %sp, 0x0f, %sp ! align stack on 16-byte boundary andn %sp, 0x0f, %sp ! align stack on 16-byte boundary
mov %sp, %fp ! Set frame pointer mov %sp, %fp ! Set frame pointer
nop nop