diff options
Diffstat (limited to 'libgcc/config/microblaze')
-rw-r--r-- | libgcc/config/microblaze/crti.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgcc/config/microblaze/crti.S b/libgcc/config/microblaze/crti.S index e5136db..024a0ba 100644 --- a/libgcc/config/microblaze/crti.S +++ b/libgcc/config/microblaze/crti.S @@ -26,10 +26,20 @@ .section .init, "ax" .global __init + + .weak _stack + .set _stack, 0xffffffff + .weak _stack_end + .set _stack_end, 0 + .align 2 __init: addik r1, r1, -8 sw r15, r0, r1 + la r11, r0, _stack + mts rshr, r11 + la r11, r0, _stack_end + mts rslr, r11 .section .fini, "ax" .global __fini |