Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Electronic Equipment > Embedded > Re: Could any o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 9 Topic 12422 of 13381
Post > Topic >>

Re: Could any one clarify the below codes.

by cs_posting@[EMAIL PROTECTED] Jun 25, 2008 at 10:04 AM

On Jun 25, 7:22 am, "Mohan kumar" <mohankumar_be...@[EMAIL PROTECTED]
>
wrote:

> Below code is part of powerpc 555 boot up code, could any one explain,
why
> stack is terminated by "stwu  r0,-64(r1)"

>addi    r0,r0,0                 # Clear r0.
>stwu    r0,-64(r1)              # Terminate stack.

A little googling shows that it's powerpc convention to store a
pointer to the previous stack frame in a new one, basically making
them a linked list.  This seems to be setting up the first-ever stack
frame, and so it's storing zero to indicate there was no previous
one.  I'm not completely sure, but this may not actually be necessary
for execution, but instead just to be to help a debugger figure out
that it's the first frame and there are no previous ones that can be
examined.
 




 9 Posts in Topic:
Could any one clarify the below codes.
"Mohan kumar" &  2008-06-25 06:22:46 
Re: Could any one clarify the below codes.
cs_posting@[EMAIL PROTECT  2008-06-25 10:04:15 
Re: Could any one clarify the below codes.
"Mohan kumar" &  2008-06-26 01:10:21 
Re: Could any one clarify the below codes.
Coos Haak <chforth@[EM  2008-06-26 15:19:41 
Re: Could any one clarify the below codes.
"John B" <sp  2008-06-27 11:57:42 
Re: Could any one clarify the below codes.
Coos Haak <chforth@[EM  2008-06-27 18:48:31 
Re: Could any one clarify the below codes.
mojaveg@[EMAIL PROTECTED]  2008-06-26 07:13:04 
Re: Could any one clarify the below codes.
cs_posting@[EMAIL PROTECT  2008-06-26 07:13:50 
Re: Could any one clarify the below codes.
cs_posting@[EMAIL PROTECT  2008-06-26 10:02:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 17:56:01 CST 2008.