public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Use .data section in SPL ?
@ 2014-12-10  7:39 Masahiro Yamada
  2014-12-10 14:06 ` Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: Masahiro Yamada @ 2014-12-10  7:39 UTC (permalink / raw)
  To: u-boot

Hi.


I notice  SPL is using .data section



u32 *boot_params_ptr = NULL;
struct spl_image_info spl_image;

/* Define board data structure */
static bd_t bdata __attribute__ ((section(".data")));



If SPL is running on an execute-in-place device such NOR flash,
.data section is not writable.

common/spl/spl_nor.c does not work.



Shall we ban global variables on SPL (and pre-relocation) ?

 or

Shall we make .data section available?



Best Regards
Masahiro Yamada

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

end of thread, other threads:[~2014-12-11  2:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-10  7:39 [U-Boot] Use .data section in SPL ? Masahiro Yamada
2014-12-10 14:06 ` Tom Rini
2014-12-11  1:56   ` Simon Glass
2014-12-11  2:04     ` Tom Rini
2014-12-11  2:13       ` Simon Glass
2014-12-11  2:20         ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox