stgi
Set Global Interrupt Flag
Enables global interrupts (AMD SVM).
Pseudocode Operation
GIF ← 1; // Global interrupt flag enabled
Encoding
Operands
Related
More in SVM
Reference
Instruction Forms
| Opcode | Instruction | Op/En | 64/32-bit Mode | CPUID | Description |
|---|---|---|---|---|---|
| 0F 01 DC | STGI | Sets the global interrupt flag (GIF). |
Description
Sets the global interrupt flag (GIF) to 1. While GIF is zero, all external interrupts are disabled. This is a Secure Virtual Machine (SVM) instruction. Attempted execution of this instruction causes a #UD exception if SVM is not enabled and neither SVM Lock nor the device exclusion vector (DEV) are supported. Support for SVM Lock is indicated by CPUID Fn8000_000A_EDX[SVML] = 1. Support for DEV is part of the SKINIT architecture and is indicated by CPUID Fn8000_0001_ECX[SKINIT] = 1. For more information on using the CPUID instruction, see the description of the CPUID instruction on page 165. For information on enabling SVM, see “Enabling SVM” in APM Volume 2.