/* early init function before main 
This function is executed right before main function. For RISC-V gnu toolchain, _init function might not be called by __libc_init_array function, so we defined a new function to do initialization  */
void _premain_init(void)
/* early init function before main 
This function is executed right before main function. For RISC-V gnu toolchain, _init function might not be called by __libc_init_array function, so we defined a new function to do initialization  */
void _premain_init(void)
{
    Exception_Init();
    ECLIC_Init();
}