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>
1 parent d4c596b commit 43cbaf061587e7e8b3529e4b1d30de3ab1b52d3e
@Roberto Vargas Roberto Vargas authored on 3 Aug 2017
Showing 2 changed files
View
include/lib/utils.h
View
lib/utils/mem_region.c 0 → 100644