Skip to content

Commit

Permalink
goldfish: sync with qemu do rpmsg_syslog init at goldfish
Browse files Browse the repository at this point in the history
Signed-off-by: ligd <[email protected]>
  • Loading branch information
GUIDINGLI authored and xiaoxiang781216 committed Oct 11, 2024
1 parent 6e68dde commit 994e157
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions arch/arm/src/goldfish/goldfish_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@
# include <nuttx/sched_note.h>
#endif

#include <nuttx/syslog/syslog_rpmsg.h>

/****************************************************************************
* Private Data
****************************************************************************/

#ifdef CONFIG_SYSLOG_RPMSG
static char g_syslog_rpmsg_buf[4096];
#endif

/****************************************************************************
* Public Functions
****************************************************************************/
Expand Down Expand Up @@ -82,6 +92,10 @@ void arm_boot(void)

arm_earlyserialinit();
#endif

#ifdef CONFIG_SYSLOG_RPMSG
syslog_rpmsg_init_early(g_syslog_rpmsg_buf, sizeof(g_syslog_rpmsg_buf));
#endif
}

#if defined(CONFIG_ARM_PSCI) && defined(CONFIG_SMP)
Expand Down

0 comments on commit 994e157

Please sign in to comment.