jlaitine commented on a change in pull request #5289:
URL: https://github.com/apache/incubator-nuttx/pull/5289#discussion_r789507833
##########
File path: arch/risc-v/src/mpfs/mpfs_head.S
##########
@@ -161,13 +173,17 @@ __start:
csrw mie, zero
csrw mip, zero
-#ifdef CONFIG_MPFS_OPENSBI
- jal mpfs_opensbi_prepare_hart
-#else
- /* Jump to app (TODO: remove fixed address) */
- li a1, 0x80000000
- jr a1
-#endif
+ /* Offset to g_entrypoints vector, acc. to hart id */
+ li t1,8
+ mul t1, a0, t1
+
+ /* Load the entrypoint address */
+ la t0, g_entrypoints
+ add t0,t0,t1
+ ld t0,0(t0)
Review comment:
ok
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]