add sequence for task switch from user to irq