[U-Boot] [PATCH 3/6] mpc83xx: Add link vs. load address calculation

Scott Wood scottwood at freescale.com
Tue Nov 23 20:32:32 CET 2010


On Tue, 23 Nov 2010 19:48:48 +0100
Joakim Tjernlund <Joakim.Tjernlund at transmode.se> wrote:

> diff --git a/include/common.h b/include/common.h
> index 8bca04f..f257ea4 100644
> --- a/include/common.h
> +++ b/include/common.h
> @@ -94,6 +94,9 @@ typedef volatile unsigned char	vu_char;
>  #ifdef CONFIG_MPC83xx
>  #include <mpc83xx.h>
>  #include <asm/immap_83xx.h>
> +const void * link_off(const void *);
> +#else
> +#define link_off(x) ((const void *)(x))
>  #endif

What is special about 83xx?

If it's just that 83xx is the only one that this type of relocation has
been enabled on so far, define a symbol for that.

-Scott



More information about the U-Boot mailing list