public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Can anyone help me to solve the stack problem of U-boot? Urgent~
@ 2012-04-25 16:35 吳志峰
  2012-04-25 22:11 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: 吳志峰 @ 2012-04-25 16:35 UTC (permalink / raw)
  To: u-boot

Dear all:

 

I had a ARM platform which call DVTEST.

While booting, the platform (ROM code) will copy image from SD card to SDRAM
base address (0x0).

So my TEXT_BASE address should be start from 0x00000000.

But I found all the ARM platforms in U-boot didn?t start from their SDRAM
base address.

They also set up the stack pointer by growing up direction

 

        /* Set up the stack                                              */

stack_setup:

        ldr    r0, _TEXT_BASE              /* upper 128 KiB: relocated uboot
*/

        sub   r0, r0, #CONFIG_SYS_MALLOC_LEN      /* malloc area
*/

        sub   r0, r0, #CONFIG_SYS_GBL_DATA_SIZE  /* bdinfo           */

 

My question is can I start U-boot from SDRAM base address (0x00000000)?

If so, how to change the stack direction?  (GCC option or some else)

 

Please help me because this problem had confused me a lot of days.

Thanks.

 

Best Regards.

 

Richard 

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

end of thread, other threads:[~2012-04-26  8:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-25 16:35 [U-Boot] Can anyone help me to solve the stack problem of U-boot? Urgent~ 吳志峰
2012-04-25 22:11 ` Wolfgang Denk
2012-04-26  4:24   ` Macpaul Lin
2012-04-26  8:32     ` 吳志峰

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