Hello,
That was the gate clocking issue. Now the issue is that I cannot enable interrupt on both pins. When Kbi1_PE is 0x90(both pin selected in pin enable) only the ptd4 pin triggers the input. Ptd7 does not. When kbi1_PE is 0x80(only ptd7 selected), ptd7 works fine. Ptd4 is the output of a logical device, ptd7 is mechanical switch pulled up.