summaryrefslogtreecommitdiff
path: root/firmware/fw_jump.S
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/fw_jump.S')
-rw-r--r--firmware/fw_jump.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/fw_jump.S b/firmware/fw_jump.S
index cdf1f41..84391c9 100644
--- a/firmware/fw_jump.S
+++ b/firmware/fw_jump.S
@@ -11,6 +11,19 @@
.align 3
.section .entry, "ax", %progbits
+ .global fw_boot_hart
+ /*
+ * This function is called very early even before
+ * fw_save_info() is called.
+ * We can only use a0, a1, and a2 registers here.
+ * The boot HART id should be returned in 'a0'.
+ */
+fw_boot_hart:
+ li a0, -1
+ ret
+
+ .align 3
+ .section .entry, "ax", %progbits
.global fw_save_info
/*
* We can only use a0, a1, a2, a3, and a4 registers here.