to make the MoiSoc_isr to safer