diff options
author | Jianjun Wang <jianjun.wang@mediatek.com> | 2022-04-08 16:57:28 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-04-14 22:27:50 +0000 |
commit | b2537bdad552443aba58bda7c42af1f039a58c94 (patch) | |
tree | aac90b0d8e31c8986dd9be460199af7503a08263 /tests/lib/bootmem-test.c | |
parent | 6f023ece0860a7988ef7f1f15bea5b54df0161ff (diff) | |
download | coreboot-b2537bdad552443aba58bda7c42af1f039a58c94.tar.gz coreboot-b2537bdad552443aba58bda7c42af1f039a58c94.tar.bz2 coreboot-b2537bdad552443aba58bda7c42af1f039a58c94.zip |
coreboot_tables: Replace 'struct lb_uint64' with lb_uint64_t
Replace 'struct lb_uint64' with 'typedef __aligned(4) uint64_t
lb_uint64_t', and remove unpack_lb64/pack_lb64 functions since it's no
longer needed.
Also replace 'struct cbuint64' with 'cb_uint64_t' and remove
'cb_unpack64' in libpayload for compatible with lb_uint64_t.
Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>
Change-Id: If6b037e4403a8000625f4a5fb8d20311fe76200a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63494
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'tests/lib/bootmem-test.c')
-rw-r--r-- | tests/lib/bootmem-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/bootmem-test.c b/tests/lib/bootmem-test.c index ddd62ae6ef60..7bdbf0d31093 100644 --- a/tests/lib/bootmem-test.c +++ b/tests/lib/bootmem-test.c @@ -177,8 +177,8 @@ static void test_bootmem_write_mem_table(void **state) required_unused_space_size); for (i = 0; i < lb_mem->size / sizeof(struct lb_memory_range); i++) { - assert_int_equal(unpack_lb64(lb_mem->map[i].start), os_ranges[i].start); - assert_int_equal(unpack_lb64(lb_mem->map[i].size), os_ranges[i].size); + assert_int_equal(lb_mem->map[i].start, os_ranges[i].start); + assert_int_equal(lb_mem->map[i].size, os_ranges[i].size); assert_int_equal(lb_mem->map[i].type, bootmem_to_lb_tag(os_ranges[i].type)); } |