Skip to content

Commit 95530e7

Browse files
committed
goldfish: sync with qemu do rpmsg_syslog init at goldfish
Signed-off-by: ligd <liguiding1@xiaomi.com>
1 parent 933e066 commit 95530e7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

arch/arm/src/goldfish/goldfish_boot.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@
4141
# include <nuttx/sched_note.h>
4242
#endif
4343

44+
#include <nuttx/syslog/syslog_rpmsg.h>
45+
46+
/****************************************************************************
47+
* Private Data
48+
****************************************************************************/
49+
50+
#ifdef CONFIG_SYSLOG_RPMSG
51+
static char g_syslog_rpmsg_buf[4096];
52+
#endif
53+
4454
/****************************************************************************
4555
* Public Functions
4656
****************************************************************************/
@@ -82,6 +92,10 @@ void arm_boot(void)
8292

8393
arm_earlyserialinit();
8494
#endif
95+
96+
#ifdef CONFIG_SYSLOG_RPMSG
97+
syslog_rpmsg_init_early(g_syslog_rpmsg_buf, sizeof(g_syslog_rpmsg_buf));
98+
#endif
8599
}
86100

87101
#if defined(CONFIG_ARM_PSCI) && defined(CONFIG_SMP)

0 commit comments

Comments
 (0)