diff options
author | Aaron Durbin <adurbin@chromium.org> | 2013-03-26 21:22:42 -0500 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-03-29 20:11:28 +0100 |
commit | f6f6e13c46a4320f03fdf1286e37e05a8d047e56 (patch) | |
tree | 318cf14f97202dea0b94474701f03599642e92b3 /src/lib/memrange.c | |
parent | e63d5d83e438ac3710f68f9cddddd5f1e294dbf6 (diff) | |
download | coreboot-f6f6e13c46a4320f03fdf1286e37e05a8d047e56.tar.xz |
memrange: add 2 new range_entry routines
Two convenience functions are added to operate on a range_entry:
- range_entry_update_tag() - update the entry's tag
- memranges_next_entry() - get the next entry after the one provide
These functions will be used by a follow on patch to the MTRR code
to allow hole punching in WB region when the default MTRR type is
UC.
Change-Id: I3c2be19c8ea1bbbdf7736c867e4a2aa82df2d611
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/2924
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/lib/memrange.c')
-rw-r--r-- | src/lib/memrange.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/memrange.c b/src/lib/memrange.c index c376d52816..1a16ef73ab 100644 --- a/src/lib/memrange.c +++ b/src/lib/memrange.c @@ -321,3 +321,9 @@ void memranges_fill_holes_up_to(struct memranges *ranges, /* Merge all entries that were newly added. */ merge_neighbor_entries(ranges); } + +struct range_entry *memranges_next_entry(struct memranges *ranges, + const struct range_entry *r) +{ + return r->next; +} |