]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/BaseMemoryLibOptDxe/Arm/ScanMem.S
MdePkg/BaseMemoryLibOptDxe ARM: fix Thumb-2 bug in ScanMem()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 26 Sep 2016 22:51:45 +0000 (15:51 -0700)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 27 Sep 2016 16:12:14 +0000 (09:12 -0700)
commitc4f637077eb4504aa0109aac9983dfe85e5b2afb
treed538e23675d34bb641c651dd1616692b1d4749dc
parent7807dea57fba6a019bb8641572e0159ffa03ad9e
MdePkg/BaseMemoryLibOptDxe ARM: fix Thumb-2 bug in ScanMem()

The ARM ScanMem() in BaseMemoryLibOptDxe contains code from the open
source cortex-strings library, and inherited a bug from it where the
conditional execution of a sequence of instructions is erroneously
made dependent on the same condition. Since the final 'addeq' is
supposed to be dependent on the preceding 'tsteq' instruction, they
cannot be part of the same IT block.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/BaseMemoryLibOptDxe/Arm/ScanMem.S