This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: [PATCH] [m32r-elf ] to allow _stack to be placed anywhere inmemory
- From: "J. Johnston" <jjohnstn at redhat dot com>
- To: Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
- Cc: newlib at sources dot redhat dot com
- Date: Mon, 23 Jun 2003 15:06:28 -0400
- Subject: Re: [PATCH] [m32r-elf ] to allow _stack to be placed anywhere inmemory
- Organization: Red Hat Inc.
- References: <00ee01c33942$59e042c0$2569910a@hoku.renesas.com>
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
>