public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] how does stack work?
@ 2004-07-27 14:33 Seingier François-Xavier
  2004-07-27 17:31 ` Kenneth Johansson
  0 siblings, 1 reply; 3+ messages in thread
From: Seingier François-Xavier @ 2004-07-27 14:33 UTC (permalink / raw)
  To: u-boot

hello,
I'm trying to understand how the initial stack works on a ppc4xx. According to start.S this is how the layout looks to me:
      ___________
     |           |
     |           |
     |           |
     |    gd_t   |
     |___________|  
     |     0     |
     |___________|  
     |     0     |  
     |___________|<-+
     | reset_vec |  |
SP ->|___________|  |
     |           |--+
     |___________|<-+
     |           |  |
     |___________|  |
     |           |--+
     |___________|
     |   ...     |

I can't figure out precisely how the last stack frame works:
- /* clear final stack frame so that	*/
  /* stack backtraces terminate cleanly	*/
I'm not sure to understand the "terminate cleanly".

- why will the reset_vec be used in case of a stack underflow?
I tried to find an answer in the "PowerPC compiler writer's guide" about the ABI, but I am not even sure gcc uses an AIX or System V implementation...

If somebody could explain how this works in details, I would be very grateful (or point me to the right doc)

Thanks in advance

Fran?ois-Xavier SEINGIER

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [U-Boot-Users] how does stack work?
@ 2004-07-27 14:56 Seingier François-Xavier
  0 siblings, 0 replies; 3+ messages in thread
From: Seingier François-Xavier @ 2004-07-27 14:56 UTC (permalink / raw)
  To: u-boot

sorry I did not put the SP at the right place on the figure ;)
 

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

end of thread, other threads:[~2004-07-27 17:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-27 14:33 [U-Boot-Users] how does stack work? Seingier François-Xavier
2004-07-27 17:31 ` Kenneth Johansson
  -- strict thread matches above, loose matches on Subject: below --
2004-07-27 14:56 Seingier François-Xavier

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