From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/3] nios2: remove CONFIG_SYS_INIT_SP macro
Date: Fri, 6 Nov 2015 09:29:15 +0800 [thread overview]
Message-ID: <563C026B.3020207@wytron.com.tw> (raw)
In-Reply-To: <1446531623-17267-2-git-send-email-thomas@wytron.com.tw>
On 2015?11?03? 14:20, Thomas Chou wrote:
> Remove CONFIG_SYS_INIT_SP macro, as the initial stack is set to
> below the u-boot code.
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> arch/nios2/cpu/start.S | 3 +--
> include/configs/nios2-generic.h | 1 -
> 2 files changed, 1 insertion(+), 3 deletions(-)
>
Applied u-boot-nios.
> diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S
> index 8758e7e..bb86bbf 100644
> --- a/arch/nios2/cpu/start.S
> +++ b/arch/nios2/cpu/start.S
> @@ -81,6 +81,7 @@ _cur: movhi r5, %hi(_cur - _start)
> mov r8, r4
> movhi r5, %hi(_start)
> ori r5, r5, %lo(_start) /* r5 <- linked _start */
> + mov sp, r5 /* initial stack below u-boot code */
> beq r4, r5, 3f
>
> movhi r6, %hi(CONFIG_SYS_MONITOR_LEN)
> @@ -100,8 +101,6 @@ _cur: movhi r5, %hi(_cur - _start)
> _reloc:
>
> /* STACK INIT -- zero top two words for call back chain. */
> - movhi sp, %hi(CONFIG_SYS_INIT_SP)
> - ori sp, sp, %lo(CONFIG_SYS_INIT_SP)
> addi sp, sp, -8
> stw r0, 0(sp)
> stw r0, 4(sp)
> diff --git a/include/configs/nios2-generic.h b/include/configs/nios2-generic.h
> index 74c715d..3a559f1 100644
> --- a/include/configs/nios2-generic.h
> +++ b/include/configs/nios2-generic.h
> @@ -84,7 +84,6 @@
> CONFIG_SYS_SDRAM_SIZE - \
> CONFIG_SYS_MONITOR_LEN)
> #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 0x20000)
> -#define CONFIG_SYS_INIT_SP CONFIG_SYS_MALLOC_BASE
>
> /*
> * MISC
>
next prev parent reply other threads:[~2015-11-06 1:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-03 6:20 [U-Boot] [PATCH 1/3] nios2: remove CONFIG_SYS_MALLOC_BASE macro Thomas Chou
2015-11-03 6:20 ` [U-Boot] [PATCH 2/3] nios2: remove CONFIG_SYS_INIT_SP macro Thomas Chou
2015-11-03 15:25 ` Marek Vasut
2015-11-04 14:32 ` Chin Liang See
2015-11-06 1:29 ` Thomas Chou [this message]
2015-11-03 6:20 ` [U-Boot] [PATCH 3/3] nios2: fix cached mode in clearing the BSS Thomas Chou
2015-11-04 14:49 ` Chin Liang See
2015-11-06 1:29 ` Thomas Chou
2015-11-04 14:28 ` [U-Boot] [PATCH 1/3] nios2: remove CONFIG_SYS_MALLOC_BASE macro Chin Liang See
2015-11-06 1:28 ` Thomas Chou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=563C026B.3020207@wytron.com.tw \
--to=thomas@wytron.com.tw \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox