Fixed issue for ICC, since ICC does not allow to cast data with volatile qualifier.
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Apr 2007 06:22:45 +0000 (06:22 +0000)
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Apr 2007 06:22:45 +0000 (06:22 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2532 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseLib/Synchronization.c

index a4aa3fb1eb1984f8431d9a5df8ce4d7bb810b27a..225453149d30a476187250b076f0b53ffc19c520 100644 (file)
@@ -16,8 +16,8 @@
 \r
 #include "BaseLibInternals.h"\r
 \r
-#define SPIN_LOCK_RELEASED          ((SPIN_LOCK)1)\r
-#define SPIN_LOCK_ACQUIRED          ((SPIN_LOCK)2)\r
+#define SPIN_LOCK_RELEASED          ((UINTN) 1)\r
+#define SPIN_LOCK_ACQUIRED          ((UINTN) 2)\r
 \r
 /**\r
   Retrieves the architecture specific spin lock alignment requirements for\r