All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] ARM GLOBAL_DATA_PTR gd issue
@ 2010-01-05  7:04 pawan
  2010-01-05  7:12 ` Albert ARIBAUD
  0 siblings, 1 reply; 2+ messages in thread
From: pawan @ 2010-01-05  7:04 UTC (permalink / raw)
  To: u-boot

Hi,

I'm trying to compile the u-boot for arm-1026 architecture after adding the
support for a new board. I'm facing the issue in accessing the global data
"gd" (which is declared in "include/asm-arm/global_data.h" as
#define DECLARE_GLOBAL_DATA_PTR     register volatile gd_t *gd __asm__
("r8")
).

As per the declaration "gd" is assigned the register "r8", however in the
generated code this never happens, mostly it is the r6 register that is used
for it. I checked that the -ffixed-r8 is getting used as a compile option.
Can somebody point what might be going wrong?

Thanks,
Pawan

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

end of thread, other threads:[~2010-01-05  7:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-05  7:04 [U-Boot] ARM GLOBAL_DATA_PTR gd issue pawan
2010-01-05  7:12 ` Albert ARIBAUD

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.