The
cli
function causes interrupts to be blocked on the host, so that
following critical code may run uninterrupted. The
sti
function enables interrupts again.
Although it is possible to use cli/sti pairs to protect critical code,
it is best to use
cli
with the
save_flags
macro. See
save_flags (9).