The _ _di intrinsic has the following declaration:
void __di(void);
This intrinsic function executes a CALL_PAL DI (Disable Interrupts) instruction. This intrinsic may only be executed in kernel mode.