]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/BaseLib.h
1.Define SPIN_LOCK as "volatile UINTN" to prevent mutli-processor access harzard.
[mirror_edk2.git] / MdePkg / Include / Library / BaseLib.h
index f98b250402ce5124f5c360bf4f26942db7578df3..fb3ca341312650007d29ead837c633e8e9b91499 100644 (file)
@@ -25,7 +25,7 @@
 //
 // SPIN_LOCK
 //
-typedef UINTN                       SPIN_LOCK;
+typedef volatile UINTN              SPIN_LOCK;
 
 #if   defined (MDE_CPU_IA32)
 //