CLI Clear Interrupt-Enable Flag Flags: O D I T S Z A P C - - 0 - - - - - - CLIIO
Logic IF ← 0
External interrupts are ignored at the end of CLI until the interrupt flag (IF) is set to one. Non-maskable interrupts are recognized no matter what the state of IF. CLI and STI have no effect on software interrupts - those generated by an INT instruction or by the occurrence of a divide fault and similar conditions.
Protected mode If the current privilege level (CPL) is at least as privileged as the input/output privilege level (IOPL -- bits 12 and 13 of the FLAGS register), CLI resets IF to zero. A general protection exception generated is if the program does not have the correct I/O privilege.