amdfwtool: Set the minimum size of entry PSPL2 A/B
This is a PSP FW requirement. This is only for recovery A/B without ISH header. That means only Cezanne. Change-Id: I62616d5a866f66fc71e6c0b31a23c62dc11cf3c6 Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/75161 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
parent
4f154a2dd3
commit
948c0b7947
|
@ -897,9 +897,10 @@ static void integrate_psp_ab(context *ctx, psp_directory_table *pspdir,
|
|||
BUFF_TO_RUN_MODE(*ctx, pspdir2, AMD_ADDR_REL_BIOS);
|
||||
pspdir->entries[count].address_mode =
|
||||
SET_ADDR_MODE(pspdir, AMD_ADDR_REL_BIOS);
|
||||
pspdir->entries[count].size = pspdir2->header.num_entries *
|
||||
pspdir->entries[count].size = _MAX(TABLE_ALIGNMENT,
|
||||
pspdir2->header.num_entries *
|
||||
sizeof(psp_directory_entry) +
|
||||
sizeof(psp_directory_header);
|
||||
sizeof(psp_directory_header));
|
||||
}
|
||||
|
||||
count++;
|
||||
|
|
Loading…
Reference in New Issue