
12 Dec
2018
12 Dec
'18
12:23 a.m.
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@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@aisec.fraunhofer.de