code to handle interrupt descriptor table