Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit aed22e6d authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

slim_msm: fix LPAE builds (64-bit division)



We can't currently divide 64-bit numbers on LPAE builds. Currently,
slim-msm.c is using a physical address as part of a division operation,
resulting in the following linker error:

      LD      init/built-in.o
    drivers/built-in.o: In function `msm_slim_tx_msg_return':
    drivers/slimbus/slim-msm.c:432: \
        undefined reference to `__aeabi_uldivmod'

Fix this by casting the physical address to an unsigned long.

Change-Id: I396697158c57c80240ccd039006422afd684f47d
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 7e38fdf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment