Skip to contentSkip to conversation

Trouble w/GLOBAL_DATA_PTR on PXA255

U-Boot-Users Craig A. Vanderborgh 2 participants 2 messages Jan 12, 2005

lore
Share & tools
lore
#0 lore raw

Hello Booters,

I am having some strange problems with "gd" on PXA255. Basically, I am experiencing intermittent memory corruption (e.g. a reported RAM size of 3955MB) and the like. DECLARE_GLOBAL_DATA_PTR is defined as:

#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r8")

on ARM platforms. I guess the question is then - what is supposed to be in r8, and where is this supposed to be set up? It looks like the setup for "gd" is simply incorrect for my platform, but I am not sure how it supposed to be.

Please advise.

Thanks in advance,
craig vanderborgh
voxware incorporated

#1 lore raw
Quoted 5 lines · In message <[email protected]> you wrote:

on ARM platforms. I guess the question is then - what is supposed to be in r8, and where is this supposed to be set up? It looks like the setup for "gd" is simply incorrect for my platform, but I am not sure how it supposed to be.

You found section "Initial Stack, Global Data" in the README, didn't you? Initialization of the global data pointer is architecture
specific, but not board-dependent. See start_armboot() in
"lib_arm/board.c"

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The reasonable man adapts himself to the world; the unreasonable  one
persists  in  trying  to  adapt  the  world to himself. Therefore all
progress depends on the unreasonable man."      - George Bernard Shaw