commit | 5619c80a21596e9b945df3ce04a39baa93030b61 | [log] [tgz] |
---|---|---|
author | David Pu <dpu@nvidia.com> | Fri Feb 22 02:23:57 2019 -0800 |
committer | David Pu <dpu@nvidia.com> | Thu Feb 28 10:14:20 2019 -0800 |
tree | e9fd733018a75060b3de48953b6fcba2a8458c2d | |
parent | 1507d41a08e5c80e83423e9668556fea7208ad98 [diff] |
xlat_tables_v2: find VA/idx with helper functions. This patch introduces 2 helper functions 'xlat_tables_find_start_va' and 'xlat_tables_va_to_index' to find the first VA and table index affected by the specified mmap region. it reduces code duplication and cyclomatic code complexity in xlat_tables_map/unmap_region functions. Cyclomatic complexity calculated using 'Coverity' fixes arm-software/tf-issues#673 Signed-off-by: David Pu <dpu@nvidia.com>