From 994e15710f1b1140c3c5602e3d2c2f2a8db2cbe1 Mon Sep 17 00:00:00 2001 From: ligd Date: Wed, 28 Aug 2024 16:12:06 +0800 Subject: [PATCH] goldfish: sync with qemu do rpmsg_syslog init at goldfish Signed-off-by: ligd --- arch/arm/src/goldfish/goldfish_boot.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/src/goldfish/goldfish_boot.c b/arch/arm/src/goldfish/goldfish_boot.c index 816b138af1..1d2aa81ccc 100644 --- a/arch/arm/src/goldfish/goldfish_boot.c +++ b/arch/arm/src/goldfish/goldfish_boot.c @@ -41,6 +41,16 @@ # include #endif +#include + +/**************************************************************************** + * Private Data + ****************************************************************************/ + +#ifdef CONFIG_SYSLOG_RPMSG +static char g_syslog_rpmsg_buf[4096]; +#endif + /**************************************************************************** * Public Functions ****************************************************************************/ @@ -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)