int_handler: reduce amount of generated code by extracting common code for int handlers
int_handler: reduce amount of generated code by extracting common code for int handlers

yeputons/os-course-term4,yeputons/os-course-term4