]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update inappropriate comments.
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 22 Dec 2010 08:32:56 +0000 (08:32 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 22 Dec 2010 08:32:56 +0000 (08:32 +0000)
fine code to make code run more safely.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11191 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c

index 2fb408e680a283e9546dd211041b8da4cb9f4553..d6bf42738d2be7ed6be09ec7a24da3dfa999b4a8 100644 (file)
@@ -19,7 +19,7 @@
 \r
 /**\r
   Pass in a pointer to an ARM MOVT or MOVW immediate instruciton and \r
 \r
 /**\r
   Pass in a pointer to an ARM MOVT or MOVW immediate instruciton and \r
-  return the immediate data encoded in the instruction\r
+  return the immediate data encoded in the instruction.\r
 \r
   @param  Instruction   Pointer to ARM MOVT or MOVW immediate instruction\r
 \r
 \r
   @param  Instruction   Pointer to ARM MOVT or MOVW immediate instruction\r
 \r
@@ -45,7 +45,7 @@ ThumbMovtImmediateAddress (
   //         imm8 -> Bit7:Bit0\r
   Address  = (UINT16)(Movt & 0x000000ff);         // imm8\r
   Address |= (UINT16)((Movt >> 4) &  0x0000f700); // imm4 imm3\r
   //         imm8 -> Bit7:Bit0\r
   Address  = (UINT16)(Movt & 0x000000ff);         // imm8\r
   Address |= (UINT16)((Movt >> 4) &  0x0000f700); // imm4 imm3\r
-  Address |= ((Movt & BIT26) ? BIT11 : 0);        // i\r
+  Address |= (((Movt & BIT26) != 0) ? BIT11 : 0); // i\r
   return Address;\r
 }\r
 \r
   return Address;\r
 }\r
 \r
@@ -82,7 +82,7 @@ ThumbMovtImmediatePatch (
 \r
 /**\r
   Pass in a pointer to an ARM MOVW/MOVT instruciton pair and \r
 \r
 /**\r
   Pass in a pointer to an ARM MOVW/MOVT instruciton pair and \r
-  return the immediate data encoded in the two` instruction\r
+  return the immediate data encoded in the two` instruction.\r
 \r
   @param  Instructions  Pointer to ARM MOVW/MOVT insturction pair\r
 \r
 \r
   @param  Instructions  Pointer to ARM MOVW/MOVT insturction pair\r
 \r