All of lore.kernel.org
 help / color / mirror / Atom feed
* Questions for OpenSBI to support position independent execution
@ 2021-01-22  4:10 Vincent Chen
  2021-01-22  5:31 ` Anup Patel
  0 siblings, 1 reply; 4+ messages in thread
From: Vincent Chen @ 2021-01-22  4:10 UTC (permalink / raw)
  To: opensbi

Hi,
For the current implementation,  if we configure the OpenSBI as the
generic platform, we can execute the same OpenSBI image on the
different platforms. It eliminates many troubles in use. However, I
found there is an assumption that the OpenSBI only can run at the same
address (default: 0x80000000). If users want to change the OpenSBI
running address due to platform memory layout or other reasons, users
need to change the FW_TEXT_START and recompile the OpenSBI. In this
case, users still need to prepare multiple images for different
platforms. In order to overcome this issue, I am evaluating the
feasibility of enabling OpenSBI to support position-independent
execution. If someone has any concerns about this issue or any
suggestions, please let me know. Thanks

In addition, when I review the current implementation, I encounter a
question shown below. After OpenSBI enables to support the
position-independent execution, ideally, the code can run at an
arbitrary place. Hence, I think the codes could be removed from
firmware/fw_base.S, which are used to copy the code from the load
address to the run address. Before removing them, I want to know the
original purpose and usages of these codes, but I can't find them. If
some can tell me the answer, I would appreciate it.

Best regards,
Vincent


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-25  2:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-22  4:10 Questions for OpenSBI to support position independent execution Vincent Chen
2021-01-22  5:31 ` Anup Patel
2021-01-22  9:52   ` Andreas Schwab
2021-01-25  2:27   ` Vincent Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.