From: Sean Anderson <seanga2@gmail.com>
To: u-boot@lists.denx.de
Subject: MAIX: CONFIG_SYS_INIT_SP_ADDR
Date: Sun, 9 Aug 2020 12:35:45 -0400 [thread overview]
Message-ID: <2d865aae-e0e9-12f9-03eb-616a35285e3d@gmail.com> (raw)
In-Reply-To: <4183c14e-66f1-fe9b-b4f3-42862d124e05@gmx.de>
On 8/9/20 12:14 PM, Heinrich Schuchardt wrote:
> Hello Sean,
>
> while trying to understand the handling of SMP I stumbled of this question:
>
> Why did you define CONFIG_SYS_INIT_SP_ADDR as an odd number on the MAIX
> in commit a7c81fc85326 ("riscv: Add Sipeed Maix support") while the
> other RISC-V boards use an even number:
>
> include/configs/sifive-fu540.h:29:
> 29 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
>
> include/configs/qemu-riscv.h:22:
> 22 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + SZ_2M)
>
> include/configs/sipeed-maix.h:13:
> 13 | #define CONFIG_SYS_INIT_SP_ADDR 0x803FFFFF
>
> I always thought that RISC-V stack pointers must be 16 byte aligned:
>
> Cf. https://riscv.org/wp-content/uploads/2015/01/riscv-calling.pdf
>
> "In the standard RISC-V calling convention, the stack grows downward and
> the stack pointer is always kept 16-byte aligned."
Because that is the top of (non-ai) ram. And it gets 16-byte aligned by
call_board_init_f anyway.
--Sean
next prev parent reply other threads:[~2020-08-09 16:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-09 16:14 MAIX: CONFIG_SYS_INIT_SP_ADDR Heinrich Schuchardt
2020-08-09 16:35 ` Sean Anderson [this message]
2020-08-09 19:16 ` Heinrich Schuchardt
2020-08-09 19:23 ` Sean Anderson
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=2d865aae-e0e9-12f9-03eb-616a35285e3d@gmail.com \
--to=seanga2@gmail.com \
--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