[U-Boot] [PATCH v2 20/50] x86: Add support for starting from SPL/TPL

Bin Meng bmeng.cn at gmail.com
Wed May 1 15:25:50 UTC 2019


On Wed, May 1, 2019 at 9:03 PM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> On Fri, Apr 26, 2019 at 12:00 PM Simon Glass <sjg at chromium.org> wrote:
> >
> > When a previous phase of U-Boot has run we need to adjust the init of
> > subsequent states to avoid messing up the CPU state.
> >
> > Add a new version of the start logic for SPL, when it boots from TPL
> > (start_from tpl.c) and a new version for U-Boot when it boots from SPL.
> >
> > Signed-off-by: Simon Glass <sjg at chromium.org>
> > ---
> >
> > Changes in v2:
> > - Add xorl to TPL code also
> > - Update comments in start_from_tpl to correctly explain SPL state
> >
> >  arch/x86/Makefile             | 12 ++++++
> >  arch/x86/cpu/Makefile         | 15 +++++++-
> >  arch/x86/cpu/start_from_spl.S | 71 +++++++++++++++++++++++++++++++++++
> >  arch/x86/cpu/start_from_tpl.S | 49 ++++++++++++++++++++++++
> >  4 files changed, 146 insertions(+), 1 deletion(-)
> >  create mode 100644 arch/x86/cpu/start_from_spl.S
> >  create mode 100644 arch/x86/cpu/start_from_tpl.S
> >
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

applied to u-boot-x86, thanks!


More information about the U-Boot mailing list