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
This commit is contained in:
ydong10 2010-12-22 08:32:56 +00:00
parent 5456306fcf
commit 9c3d10b75d
1 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
/** /**
Pass in a pointer to an ARM MOVT or MOVW immediate instruciton and 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 @param Instruction Pointer to ARM MOVT or MOVW immediate instruction
@ -45,7 +45,7 @@ ThumbMovtImmediateAddress (
// imm8 -> Bit7:Bit0 // imm8 -> Bit7:Bit0
Address = (UINT16)(Movt & 0x000000ff); // imm8 Address = (UINT16)(Movt & 0x000000ff); // imm8
Address |= (UINT16)((Movt >> 4) & 0x0000f700); // imm4 imm3 Address |= (UINT16)((Movt >> 4) & 0x0000f700); // imm4 imm3
Address |= ((Movt & BIT26) ? BIT11 : 0); // i Address |= (((Movt & BIT26) != 0) ? BIT11 : 0); // i
return Address; return Address;
} }
@ -82,7 +82,7 @@ ThumbMovtImmediatePatch (
/** /**
Pass in a pointer to an ARM MOVW/MOVT instruciton pair and 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 @param Instructions Pointer to ARM MOVW/MOVT insturction pair