From 5944cfb90cb951f2706bb3c967e2e66de41c4333 Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Thu, 11 Jan 2024 23:33:07 +0800 Subject: [PATCH] bsp,am,init: add ioe_init() --- bsp/abstract-machine/src/init.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bsp/abstract-machine/src/init.c b/bsp/abstract-machine/src/init.c index 26fa5b9..76b07e9 100644 --- a/bsp/abstract-machine/src/init.c +++ b/bsp/abstract-machine/src/init.c @@ -1,5 +1,6 @@ #include #include +#include #define RT_HW_HEAP_BEGIN heap.start #define RT_HW_HEAP_END heap.end @@ -28,6 +29,12 @@ void rt_hw_board_init() { } int main() { + ioe_init(); +#ifdef __ISA_NATIVE__ + // trigger the real initialization of IOE to + // perform SDL initialization int this main thread with large stack + io_read(AM_TIMER_CONFIG); +#endif extern void __am_cte_init(); __am_cte_init(); extern int entry(void);