coreboot memrange: Changes to memrange lib
1) Add check for zero size in memrange. 2) Add public memrange_init_empty function to allow initializing only the memrange structure without filling in device resources BUG=None BRANCH=None TEST=Compiles and runs succesfully for rush MMU memranges. Change-Id: I8e4d864cbc9a770cd208f8a9f83f509dc7ace894 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/208957 Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Commit-Queue: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
6fe96360c0
commit
5c42301c2a
2 changed files with 12 additions and 1 deletions
|
|
@ -75,6 +75,9 @@ static inline void range_entry_update_tag(struct range_entry *r,
|
|||
#define memranges_each_entry(r, ranges) \
|
||||
for (r = (ranges)->entries; r != NULL; r = r->next)
|
||||
|
||||
/* Initialize memranges structure */
|
||||
void memranges_init_empty(struct memranges *ranges);
|
||||
|
||||
/* Initialize and fill a memranges structure according to the
|
||||
* mask and match type for all memory resources. Tag each entry with the
|
||||
* specified type. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue