GPIO and Interrupt on the same pin

I have an interrupt line on port c2 which is configured as edge triggered interrupt. In its interrupt routine I want to stay in a ‘while’ loop until the interrupt line is deactivated. Has anyone an idea how to solve this problem? Actually this would be done the best by a level sensitive interrupt, but my PCB already exists…

Well I’ve done it by turning off the interrupt functionality of C2 after entering the ISR. This way I have access to the ‘real’ state of the GPIO pin. Before leaving the ISR, I have to turn on interrupt again. But… Is this it??? I believe there must be a nicer solution… Regards, Stefan