[U-Boot] [PATCH v2 33/38] x86: fsp: Allow the HOBs to be used after relocation

Bin Meng bmeng.cn at gmail.com
Fri Oct 4 03:23:39 UTC 2019


Hi Simon,

On Wed, Sep 25, 2019 at 10:13 PM Simon Glass <sjg at chromium.org> wrote:
>
> Allocate memory for the HOBs and copy them before relocation. This ensures
> that they can still be accessed after relocation.
>
> This is needed when relocating the HOB within U-Boot.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2: None
>
>  arch/x86/cpu/cpu.c                     |  6 ++++++
>  arch/x86/include/asm/fsp/fsp_support.h |  8 ++++++++
>  arch/x86/include/asm/hob.h             |  8 ++++++++
>  arch/x86/lib/fsp/fsp_support.c         | 16 ++++++++++++++++
>  arch/x86/lib/hob.c                     | 11 +++++++++++
>  5 files changed, 49 insertions(+)
>

Why is this patch needed?

The HOBs are currently available after relocation already. See cmd/x86/hob.c

Regards,
Bin


More information about the U-Boot mailing list