qmeu_boot: add rpmsg syslog init for arm64 qemu chip
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
parent
e48b81ebe9
commit
a847ee1675
1 changed files with 9 additions and 0 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include <debug.h>
|
||||
|
||||
#include <nuttx/cache.h>
|
||||
#include <nuttx/syslog/syslog_rpmsg.h>
|
||||
#ifdef CONFIG_LEGACY_PAGING
|
||||
# include <nuttx/page.h>
|
||||
#endif
|
||||
|
|
@ -82,6 +83,10 @@ const struct arm_mmu_config g_mmu_config =
|
|||
.mmu_regions = g_mmu_regions,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_SYSLOG_RPMSG
|
||||
static char g_syslog_rpmsg_buf[4096];
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
@ -177,4 +182,8 @@ void arm64_chip_boot(void)
|
|||
|
||||
arm64_earlyserialinit();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSLOG_RPMSG
|
||||
syslog_rpmsg_init_early(g_syslog_rpmsg_buf, sizeof(g_syslog_rpmsg_buf));
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue