[U-Boot-Users] Trouble w/GLOBAL_DATA_PTR on PXA255

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

In message 41E48799.8080108@voxware.com 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
participants (2)
-
Craig A. Vanderborgh
-
Wolfgang Denk