This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] [m32r-elf ] to allow _stack to be placed anywhere inmemory


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
> 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]