External interrupts after call to sock_init()

After a call to sock_init(), the external interrupts become disabled. And I can’t find a way to re-enable them.

Why is that? There must be a conflict but can’t find it. And I could not find any reference to it.

Here is my external interrupts init code:

SetVectExtern4000(0, h_isr0);
SetVectExtern4000(1, h_isr1);
WrPortI(I0CR, &I0CRShadow, 0x0B);		// enable external INT0 on PE0, rising edge, priority 3
WrPortI(I1CR, &I1CRShadow, 0x0A);		// enable external INT1 on PE1, rising edge, priority 2

(external interrupts work here)

then this call is made:


(external interrupts no longer work)