[PATCH] [m32r-elf ] to allow _stack to be placed anywhere in memory
J. Johnston
jjohnstn@redhat.com
Tue Jun 24 11:36:00 GMT 2003
Patch checked in with minor modification to ChangeLog entry. Thank you.
-- Jeff J.
Kazuhiro Inaoka wrote:
> Hello
>
> We need to allow _stack area to be placed anywhere in memory.
>
> Kazuhiro
>
> libgloss/ChangeLog
>
> 2003-06-23 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
> * m32r/crt0.S (_start): Use immediate for _stack to allow them to be
> placed anywhere in memory.
>
> *** crt0.S.org Mon Jun 23 13:21:24 2003
> --- crt0.S Mon Jun 23 13:22:23 2003
> ***************
> *** 3,9 ****
> .global _start
> _start:
>
> ! ld24 sp, _stack
> ldi fp, #0
>
> # Clear the BSS. Do it in two parts for efficiency: longwords first
> --- 3,10 ----
> .global _start
> _start:
>
> ! seth sp, #shigh(_stack)
> ! add3 sp, sp, #low(_stack)
> ldi fp, #0
>
> # Clear the BSS. Do it in two parts for efficiency: longwords first
>
More information about the Newlib
mailing list