coreboot-kgpe-d16/tests/lib
Julius Werner c893197352 commonlib/region: Turn addrspace_32bit into a more official API
We had the addrspace_32bit rdev in prog_loaders.c for a while to help
represent memory ranges as an rdev, and we've found it useful for a
couple of things that have nothing to do with program loading. This
patch moves the concept straight into commonlib/region.c so it is no
longer anchored in such a weird place, and easier to use in unit tests.
Also expand the concept to the whole address space (there's no real need
to restrict it to 32 bits in 64-bit environments) and introduce an
rdev_chain_mem() helper function to make it a bit easier to use. Replace
some direct uses of struct mem_region_device with this new API where it
seems to make sense.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: Ie4c763b77f77d227768556a9528681d771a08dca
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52533
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2021-04-21 02:06:26 +00:00
..
Makefile.inc tests: Add lib/coreboot_table-test test case 2021-04-18 20:43:05 +00:00
b64_decode-test.c
bootmem-test.c tests/lib/bootmem-test: Add initialization of lb_mem fields 2021-04-13 16:03:27 +00:00
cbmem_console-test.c
compute_ip_checksum-test.c
coreboot_table-test.c tests: Add lib/coreboot_table-test test case 2021-04-18 20:43:05 +00:00
crc_byte-test.c
dimm_info_util-test.c tests: Add lib/dimm_info_util-test test case 2021-04-15 07:38:05 +00:00
edid-test.c
fmap-test.c commonlib/region: Turn addrspace_32bit into a more official API 2021-04-21 02:06:26 +00:00
hexstrtobin-test.c
imd-test.c include/assert.h: Use mock_assert() for ENV_TEST targets 2021-04-09 06:20:04 +00:00
imd_cbmem-test.c
list-test.c
malloc-test.c tests/lib/malloc-test: Fix possible memory overrun 2021-04-11 21:05:25 +00:00
memchr-test.c
memcmp-test.c
memcpy-test.c
memmove-test.c
memrange-test.c
memset-test.c tests: memset-test: Parenthesize zero size argument for clang 2021-03-18 15:02:13 +00:00
region_file-test.c commonlib/region: Turn addrspace_32bit into a more official API 2021-04-21 02:06:26 +00:00
stack-test.c include/assert.h: Use mock_assert() for ENV_TEST targets 2021-04-09 06:20:04 +00:00
string-test.c
timestamp-test.c
uuid-test.c tests: Add lib/uuid-test test case 2021-04-06 06:56:47 +00:00