ARMv7: division support for missing __aeabi_*divmod
authorEtienne Carriere <etienne.carriere@linaro.org>
Sun, 5 Nov 2017 21:57:56 +0000 (22:57 +0100)
committerEtienne Carriere <etienne.carriere@linaro.org>
Wed, 8 Nov 2017 13:42:07 +0000 (14:42 +0100)
commit1d791530d0f3a4a02e285a38f35fecac4feec70c
tree9b4aaa565d356471e5e0edc82cf3d7ea0b04e172
parent64deed19e4f78abd7f68393096dacb58f8be1fa3
ARMv7: division support for missing __aeabi_*divmod

ARMv7-A architectures that do not support the Virtualization extensions
do not support instructions for the 32bit division. This change provides
a software implementation for 32bit division.

The division implementation is dumped from the OP-TEE project
http://github.com/OP-TEE/optee_os. The code was slightly modified
to pass trusted firmware checkpatch requirements and copyright is
given to the ARM trusted firmware initiative and its contributors.

Change-Id: Idae0c7b80a0d75eac9bd41ae121921d4c5af3fa3
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
lib/aarch32/arm32_aeabi_divmod.c [new file with mode: 0644]
lib/aarch32/arm32_aeabi_divmod_a32.S [new file with mode: 0644]