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);