coreboot: Add memory range parsing
This patch adds code to parse memory range information passed by
coreboot, and a simple helper to test whether a specific address belongs
to a range. This may be useful for coreboot-using platforms that need to
know information about the system's memory layout (e.g. to check whether
an address passed in via SMC targets valid DRAM).

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I3bea326c426db27d1a8b7d6e17418e4850e884b4
1 parent 9dfe46c commit 579d1e90d417909c43870d3decf3760851573770
@Julius Werner Julius Werner authored on 26 Mar 2020
Sandrine Bailleux committed on 7 Apr 2020
Showing 2 changed files
View
include/lib/coreboot.h
View
lib/coreboot/coreboot_table.c