mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* ARM newbie
@ 2015-01-22 11:53 Renaud Barbier
  2015-01-23  7:09 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Renaud Barbier @ 2015-01-22 11:53 UTC (permalink / raw)
  To: barebox


I am doing my first port to an ARM CPU (Broadcom chip). For testing I
built the friendlyarm-tiny210 and created an objdump to see what the
code look like:

barebox:     file format elf32-littlearm


Disassembly of section .text:

23e00000 <start>:
23e00000:   ea000012        b       23e00050 <start+0x50>
...
23e00050:   ea000013        b       23e000a4 <barebox_arm_reset_vector>
...

23e000a4 <barebox_arm_reset_vector>:
23e000a4:   e52de004        push    {lr}       ; (str lr, [sp, #-4]!)

I am a bit surprise to see a push to stack as the first instruction of
barebox_arm_reset_vector as the stack pointer has not been defined yet.
Or is there a pre boot loader that is not built as part of the
friendlyarm-tiny210  build.

Other BSP I have built do not produce this push instruction.
Where is the difference coming from in the build?

Are all BSP having a lowlevel.c file assumed to have a pre-bootloader?

Cheers,
R.










_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2015-01-23  7:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 11:53 ARM newbie Renaud Barbier
2015-01-23  7:09 ` Sascha Hauer

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