Commit 061e33b3 authored by Lonnie Liu's avatar Lonnie Liu
Browse files

Add avb_div_by_10() sysdep operation.

On some low-level 32-bit embedded systems, performing uint64_t division
(which calls a libc function) might not be supported by the CPU, and
creates linking issues when using gcc. Instead, bootloaders like uboot
provides extra functions (do_div()) as software solutions to perform the
divisions. This commit provides a way to call that do_div().

TEST=Unit tests.

Change-Id: Ia00c4998985a04fba6b85495d993dd86ed32801a
parent 1f744730
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment