From 9e76bc610f3065b6c62a1d6d8b1a57e5057a44af Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Tue, 27 Feb 2024 14:00:51 +0800 Subject: [PATCH] arm/qemu_boot: add rpmsg syslog support for qemu armv7a Signed-off-by: Bowen Wang Signed-off-by: ligd --- arch/arm/src/qemu/qemu_boot.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/src/qemu/qemu_boot.c b/arch/arm/src/qemu/qemu_boot.c index d5775b7876..87d7205512 100644 --- a/arch/arm/src/qemu/qemu_boot.c +++ b/arch/arm/src/qemu/qemu_boot.c @@ -36,6 +36,10 @@ # include #endif +#ifdef CONFIG_SYSLOG_RPMSG +static char g_syslog_rpmsg_buf[4096]; +#endif + /**************************************************************************** * Public Functions ****************************************************************************/ @@ -75,6 +79,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)