forked from Imagelibrary/rtems
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:
@@ -223,7 +223,7 @@ SYM(hard_reset):
|
||||
|
||||
set (SYM(rdb_start)), %g6 ! End of work-space area
|
||||
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
|
||||
mov %sp, %fp ! Set frame pointer
|
||||
nop
|
||||
|
||||
Reference in New Issue
Block a user