summaryrefslogtreecommitdiff
path: root/arch/riscv/cpu/cpu.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-05-07 08:57:32 -0400
committerTom Rini <trini@konsulko.com>2021-05-07 08:57:32 -0400
commit07b53103b7a6c228ae8b74ae720b9c5d219ee7fd (patch)
treeab78b271289deb21d345c92e1e3ecc8d46d2e085 /arch/riscv/cpu/cpu.c
parent1b8ad819cead7020d35f6251ef0cf3f393c61e51 (diff)
parent91e4b7516d84cefab7324765b3c8d6a909185ce2 (diff)
Merge https://source.denx.de/u-boot/custodians/u-boot-riscv
Diffstat (limited to 'arch/riscv/cpu/cpu.c')
-rw-r--r--arch/riscv/cpu/cpu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/riscv/cpu/cpu.c b/arch/riscv/cpu/cpu.c
index 85592f5bee2..296e458db4f 100644
--- a/arch/riscv/cpu/cpu.c
+++ b/arch/riscv/cpu/cpu.c
@@ -140,3 +140,14 @@ int arch_early_init_r(void)
{
return riscv_cpu_probe();
}
+
+/**
+ * harts_early_init() - A callback function called by start.S to configure
+ * feature settings of each hart.
+ *
+ * In a multi-core system, memory access shall be careful here, it shall
+ * take care of race conditions.
+ */
+__weak void harts_early_init(void)
+{
+}