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>
This commit is contained in:
@ -94,10 +94,8 @@ static int coreboot_module_redraw(WINDOW *win)
|
||||
mvwprintw(win, row++, 3, " Table: ");
|
||||
}
|
||||
|
||||
wprintw(win, "%16.16llx - %16.16llx",
|
||||
cb_unpack64(cb_info.range[i].start),
|
||||
cb_unpack64(cb_info.range[i].start) +
|
||||
cb_unpack64(cb_info.range[i].size) - 1);
|
||||
wprintw(win, "%16.16llx - %16.16llx", cb_info.range[i].start,
|
||||
cb_info.range[i].start + cb_info.range[i].size - 1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user