riscv: Save boot hart id to the global data
authorBin Meng <bmeng.cn@gmail.com>
Wed, 12 Dec 2018 14:12:45 +0000 (06:12 -0800)
committerAndes <uboot@andestech.com>
Tue, 18 Dec 2018 01:56:27 +0000 (09:56 +0800)
commit51ab4570f3920ae3d6822c96fe03ffb97e2072b4
tree7474fc94b643c1627d43c4b9029d1dc4d3f46f90
parent7f5d35a547afb1e4d8e7ca780ab1b9f78ed11d68
riscv: Save boot hart id to the global data

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@gmail.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: Anup Patel <anup@brainfault.org>
arch/riscv/cpu/start.S
arch/riscv/include/asm/global_data.h
arch/riscv/lib/asm-offsets.c [new file with mode: 0644]