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

Simon Glass sjg at chromium.org
Thu Oct 10 17:06:17 UTC 2019


Hi Bin,

On Thu, 3 Oct 2019 at 20:23, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> 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

Yes, unfortunately this was due to another problem that I had, and I
never came back and dropped this patch before sending. Sorry about
that.

Regards,
Simon


More information about the U-Boot mailing list