[U-Boot] [PATCH 24/30] riscv: save hart ID and device tree passed by prior boot stage

Rick Chen rickchen36 at gmail.com
Wed Oct 24 05:56:46 UTC 2018


> > >
> > > Store the hart ID and device tree passed by the prior boot stage (in
> > > a0 and a1) in registers s0 and s1. Replace one use of s1 in start.S to
> > > avoid overwriting it.
> > >
> > > The device tree is also stored in memory to make it available to
> > > u-boot
> >
> > nits: U-Boot
> >
> > > with the configuration CONFIG_OF_PRIOR_STAGE.
> > >
> > > Signed-off-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
> > > ---
> > >
> > >  arch/riscv/cpu/cpu.c   |  6 ++++++
> > >  arch/riscv/cpu/start.S | 12 ++++++++++--
> > >  2 files changed, 16 insertions(+), 2 deletions(-)
> > >
> >
> > Reviewed-by: Bin Meng <bmeng.cn at gmail.com>

Reviewed-by: Rick Chen <rick at andestech.com>


More information about the U-Boot mailing list