]> git.baikalelectronics.ru Git - arm-tf.git/commit
Add mem_region utility functions
authorRoberto Vargas <roberto.vargas@arm.com>
Thu, 3 Aug 2017 07:56:38 +0000 (08:56 +0100)
committerRoberto Vargas <roberto.vargas@arm.com>
Mon, 25 Sep 2017 12:32:20 +0000 (13:32 +0100)
commit43cbaf061587e7e8b3529e4b1d30de3ab1b52d3e
tree5927fdd0deaf47d55ac8b33df63cc193a1966e14
parentd4c596be87e0b04404fc10ee49544eda33c0f625
Add mem_region utility functions

This commit introduces a new type (mem_region_t) used to describe
memory regions and it adds two utility functions:

- clear_mem_regions: This function clears (write 0) to a set
of regions described with an array of mem_region_t.

- mem_region_in_array_chk This function checks if a
region is covered by some of the regions described
with an array of mem_region_t.

Change-Id: I12ce549f5e81dd15ac0981645f6e08ee7c120811
Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
include/lib/utils.h
lib/utils/mem_region.c [new file with mode: 0644]