fix cpu stall issue by uart driver