]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit7ce227534ccfae3a948c91c1fd1ce8bf21a002a1
tree7474fc94b643c1627d43c4b9029d1dc4d3f46f90
parent0972770cf8c1aff871ab9ebdbf0849de9eba6855
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]