[U-Boot] [PATCH v3 23/25] riscv: Save boot hart id to the	global data
    Auer, Lukas 
    lukas.auer at aisec.fraunhofer.de
       
    Tue Dec 11 23:23:12 UTC 2018
    
    
  
On Tue, 2018-12-11 at 01:34 -0800, Bin Meng wrote:
> At present the hart id passed via a0 in the U-Boot entry is saved
> to s0 at the beginning but does not preserve later. Save it to the
> global data structure so that it can be used later.
> 
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> 
> ---
> 
> Changes in v3:
> - new patch to save boot hart id to the global data
> 
> Changes in v2: None
> 
>  arch/riscv/cpu/start.S               |  4 ++++
>  arch/riscv/include/asm/global_data.h |  1 +
>  arch/riscv/lib/asm-offsets.c         | 19 +++++++++++++++++++
>  3 files changed, 24 insertions(+)
>  create mode 100644 arch/riscv/lib/asm-offsets.c
> 
Reviewed-by: Lukas Auer <lukas.auer at aisec.fraunhofer.de>
    
    
More information about the U-Boot
mailing list