On Sun, Jan 01, 2012 at 05:37:17AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 15:52 Sat 17 Dec , Sascha Hauer wrote: > > Traditionally U-Boot and barebox have the exception vectors at > > the start of the binary. There is no real reason in doing so, > > because in the majority of cases this data will not be at 0x0 > > where it could be used as vectors directly anyway. > > This patch puts the vectors into a separate linker section and > > defines an head function which is placed at the start of the > > image instead. Putting this in a separate function also has > > the advantage that it can be placed at the start of images > > which require an additional header like several Freescale i.MX > > images. As the head function contains the barebox arm magic > > those images can now also be detected aas barebox images. > > > > Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> > > --- > I've to make it optionnal as on AT91 for boot we must have it at the bigeniing > of the binary Instead of this: "b reset\n" ".rept 7\n" ".word 0x0\n" ".endr\n" we could do this: "b reset\n" ".rept 7\n" "1: b 1b\n" ".endr\n" This looks like a exception vector table for the at91 bootloader. BTW I just looked at a at91 datasheet and at least on the at91sam9260 the sixth vector should contain the image size to copy. So maybe this does not work on at91 anyway? Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox