From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Fri, 14 Jul 2006 10:23:36 -0400 Subject: [U-Boot-Users] clarifications u-boot for arm In-Reply-To: References: <8bf247760607140029l62f6c124idee300237361518f@mail.gmail.com> <20060714081656.373AA352681@atlas.denx.de> <8bf247760607140651l4e0bc8fdh55e1e0b731209597@mail.gmail.com> Message-ID: <44B7A8E8.3090004@smiths-aerospace.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de See bottom posted reply. Russell Peterson wrote: > Hello, > > The answer to your question "who calls start_armboot?" is answered by > you ASM code below. Hint... take a close look at the regsiter you are > loading. > > :-) > > Regards, > > Russell > > > On 7/14/06, *Ram* > wrote: > > Hi, > Thanks for your response. I have gone much further and would like > to know If > > ldr pc, _start_armboot > _start_armboot: > .word start_armboot > > > Does this really invoke start_armboot?. This is because > _start_armboot is what is > stored in pc and not start_armboot and there is also a branch > point _start_armboot (underscore start_armboot) Please see above. > > Actually the above declares a variable start_armboot and does not > invoke the function > start_armboot. If this is true, then who calls start_armboot? [snip - I believe your observations are correct, but am not an expert] > Thanks and Regards, > sriram Sriram: C compiler naming convention prepends an underscore to the C function name so the C function start_armboot() can be referenced from assembly as a branch (call) to the label _start_armboot. gvb