diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-12-22 08:32:56 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-12-22 08:32:56 +0000 |
commit | 9c3d10b75d63b3f3e3e7bb7f9e250d6f8c8c13dc (patch) | |
tree | e7e770094a0ceaac892cd528daf75e093703c49b /MdePkg/Library/BasePeCoffLib | |
parent | 5456306fcfb457df5200671346f2187f7dfbc768 (diff) | |
download | edk2-9c3d10b75d63b3f3e3e7bb7f9e250d6f8c8c13dc.tar.gz edk2-9c3d10b75d63b3f3e3e7bb7f9e250d6f8c8c13dc.tar.bz2 edk2-9c3d10b75d63b3f3e3e7bb7f9e250d6f8c8c13dc.zip |
Update inappropriate comments.
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
Diffstat (limited to 'MdePkg/Library/BasePeCoffLib')
-rw-r--r-- | MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c b/MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c index 2fb408e680..d6bf42738d 100644 --- a/MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c +++ b/MdePkg/Library/BasePeCoffLib/Arm/PeCoffLoaderEx.c @@ -19,7 +19,7 @@ /**
Pass in a pointer to an ARM MOVT or MOVW immediate instruciton and
- return the immediate data encoded in the instruction
+ return the immediate data encoded in the instruction.
@param Instruction Pointer to ARM MOVT or MOVW immediate instruction
@@ -45,7 +45,7 @@ ThumbMovtImmediateAddress ( // imm8 -> Bit7:Bit0
Address = (UINT16)(Movt & 0x000000ff); // imm8
Address |= (UINT16)((Movt >> 4) & 0x0000f700); // imm4 imm3
- Address |= ((Movt & BIT26) ? BIT11 : 0); // i
+ Address |= (((Movt & BIT26) != 0) ? BIT11 : 0); // i
return Address;
}
@@ -82,7 +82,7 @@ ThumbMovtImmediatePatch ( /**
Pass in a pointer to an ARM MOVW/MOVT instruciton pair and
- return the immediate data encoded in the two` instruction
+ return the immediate data encoded in the two` instruction.
@param Instructions Pointer to ARM MOVW/MOVT insturction pair
|