audk/MdePkg/Library/BaseLib/Arm
Ard Biesheuvel 55f5af1871 MdePkg: fix ARM version of InternalMathSwapBytes64 ()
The ARM asm implementation of InternalMathSwapBytes64 () does
interesting things if bit 7 of operand r1 (upper 32 bits of the
input value) is set. After the recursive swap, bit 7 ends up in
the sign bit position, after which it is right shifted with sign
extension, and or'ed with the upper half of the output value.

This means SwapBytes64 (0x00000080_00000000) returns an incorrect
value of 0xFFFFFFFF_80000000.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17077 6f19259b-4bc3-4df7-8a09-765794883524
2015-03-27 17:27:14 +00:00
..
CpuBreakpoint.S Replace INTERWORK_FUNC, with GCC_ASM_EXPORT() and GCC_ASM_IMPORT() and update the rest of the MdePkg ARM assembler to use the macro. Leave the old INTERWORK_FUNC macro in place until we can make sure all the other packages have been updated and then it can be removed. 2011-02-01 05:01:35 +00:00
CpuBreakpoint.asm Minor grammatical work--mostly adding periods. Sending separately a list of files missing Doxygen @param and @return information. 2010-06-11 00:02:51 +00:00
CpuPause.asm Minor grammatical work--mostly adding periods. Sending separately a list of files missing Doxygen @param and @return information. 2010-06-11 00:02:51 +00:00
DisableInterrupts.S Replace INTERWORK_FUNC, with GCC_ASM_EXPORT() and GCC_ASM_IMPORT() and update the rest of the MdePkg ARM assembler to use the macro. Leave the old INTERWORK_FUNC macro in place until we can make sure all the other packages have been updated and then it can be removed. 2011-02-01 05:01:35 +00:00
DisableInterrupts.asm Minor grammatical work--mostly adding periods. Sending separately a list of files missing Doxygen @param and @return information. 2010-06-11 00:02:51 +00:00
EnableInterrupts.S Replace INTERWORK_FUNC, with GCC_ASM_EXPORT() and GCC_ASM_IMPORT() and update the rest of the MdePkg ARM assembler to use the macro. Leave the old INTERWORK_FUNC macro in place until we can make sure all the other packages have been updated and then it can be removed. 2011-02-01 05:01:35 +00:00
EnableInterrupts.asm Minor grammatical work--mostly adding periods. Sending separately a list of files missing Doxygen @param and @return information. 2010-06-11 00:02:51 +00:00
GetInterruptsState.S Replace INTERWORK_FUNC, with GCC_ASM_EXPORT() and GCC_ASM_IMPORT() and update the rest of the MdePkg ARM assembler to use the macro. Leave the old INTERWORK_FUNC macro in place until we can make sure all the other packages have been updated and then it can be removed. 2011-02-01 05:01:35 +00:00
GetInterruptsState.asm Minor grammatical work--mostly adding periods. Sending separately a list of files missing Doxygen @param and @return information. 2010-06-11 00:02:51 +00:00
InternalSwitchStack.c Minor grammatical work--mostly adding periods. Sending separately a list of files missing Doxygen @param and @return information. 2010-06-11 00:02:51 +00:00
Math64.S MdePkg: fix ARM version of InternalMathSwapBytes64 () 2015-03-27 17:27:14 +00:00
MemoryFence.S Add Memory fence for ARM Architecture (32 and 64 bit) 2013-09-02 09:02:16 +00:00
MemoryFence.asm Add Memory fence for ARM Architecture (32 and 64 bit) 2013-09-02 09:02:16 +00:00
SetJumpLongJump.S Replace INTERWORK_FUNC, with GCC_ASM_EXPORT() and GCC_ASM_IMPORT() and update the rest of the MdePkg ARM assembler to use the macro. Leave the old INTERWORK_FUNC macro in place until we can make sure all the other packages have been updated and then it can be removed. 2011-02-01 05:01:35 +00:00
SetJumpLongJump.asm Minor grammatical work--mostly adding periods. Sending separately a list of files missing Doxygen @param and @return information. 2010-06-11 00:02:51 +00:00
SwitchStack.S add missing <BR> 2011-11-25 05:23:58 +00:00
SwitchStack.asm Minor grammatical work--mostly adding periods. Items with ONLY period added did not have the heading date changed, but Items with content changes had heading copyright dates updated. Sending separately a list of files missing Doxygen @param and @return information. (PENDING) 2010-06-25 21:56:02 +00:00
Unaligned.c Minor grammatical work--mostly adding periods. Items with ONLY period added did not have the heading date changed, but Items with content changes had heading copyright dates updated. Sending separately a list of files missing Doxygen @param and @return information. (PENDING) 2010-06-25 21:56:02 +00:00