A new code, MISHKA-D (Drift MHD), has been developed as an extension of the ideal magnetohydrodynamics (MHD) code MISHKA-1 in order to investigate the finite gyroradius stabilizing effect of ion diamagnetic drift frequency, w*i , on linear ideal MHD eigenmodes in tokamaks in general toroidal geometry.