This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[PATCH] [m32r-elf ] to allow _stack to be placed anywhere in memory
- From: Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
- To: newlib at sources dot redhat dot com
- Date: Mon, 23 Jun 2003 13:46:03 +0900
- Subject: [PATCH] [m32r-elf ] to allow _stack to be placed anywhere in memory
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