[U-Boot] [PATCH] mx25: Fix relocation by adding specific relocate_vectors

Fabio Estevam festevam at gmail.com
Tue Jan 6 01:18:17 CET 2015


On Mon, Jan 5, 2015 at 8:41 PM, Fabio Estevam <festevam at gmail.com> wrote:

> +ENTRY(relocate_vectors)
> +
> +       ldr     r0, [r9, #GD_RELOCADDR] /* r0 = gd->relocaddr */
> +       ldr     r1, =32                 /* size of vector table */
> +       add     r0, r0, r1              /* skip to indirect table */
> +       ldr     r1, =0xFFFFFEF0         /* i.MX25 indirect table */
> +       ldmia   r0!, {r2-r8}            /* load indirect vectors 1..7 */
> +       stmia   r1!, {r2-r5, r7,r8}     /* write all but vector 5 */
> +
> +       bx      lr
> +
> +ENDPROC(relocate_vectors)

If I simply do like this:

ENTRY(relocate_vectors)
    bx    lr
ENDPROC(relocate_vectors)

,then it also boots fine. So maybe we don't even need to do the
relocation on mx25?

Thanks


More information about the U-Boot mailing list