Fix the ISR defect in RTOS. Add interrupt exit function at the main interrupt service routine.