pkarashchenko commented on a change in pull request #5289:
URL: https://github.com/apache/incubator-nuttx/pull/5289#discussion_r788787597
##########
File path: arch/risc-v/src/mpfs/mpfs_start.c
##########
@@ -65,6 +65,47 @@ volatile bool g_serial_ok = false;
extern void mpfs_cpu_boot(uint32_t);
+#ifdef CONFIG_MPFS_BOOTLOADER
+
+extern void mpfs_opensbi_prepare_hart();
+
+/* Default boot address for every hart */
+
+uint64_t g_entrypoints[5] =
Review comment:
probably can simply do
```
extern uintptr_t mpfs_opensbi_prepare_hart;
uintptr_t g_entrypoints[5] =
{
#ifdef CONFIG_MPFS_HART0_SBI
(uintptr_t)&mpfs_opensbi_prepare_hart,
#else
(uintptr_t)CONFIG_MPFS_HART0_ENTRYPOINT,
#endif
...
}
```
--
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]