soc/amd/common/vboot: Remove parameter to replay_transfer_buffer_cbmemc
We don't need to force the caller to look up and cast the transfer region. We can do it in the function. BUG=b:221231786 TEST=Build guybrush Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: Ib46a673ef5a43deb56a6d522152085036a47ab66 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62401 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
parent
fe1418db3d
commit
08de3e3bd8
|
@ -54,7 +54,7 @@ void verify_psp_transfer_buf(void);
|
||||||
/* Display the transfer block's PSP_info data */
|
/* Display the transfer block's PSP_info data */
|
||||||
void show_psp_transfer_info(void);
|
void show_psp_transfer_info(void);
|
||||||
/* Replays the pre-x86 cbmem console into the x86 cbmem console */
|
/* Replays the pre-x86 cbmem console into the x86 cbmem console */
|
||||||
void replay_transfer_buffer_cbmemc(const struct transfer_info_struct *info);
|
void replay_transfer_buffer_cbmemc(void);
|
||||||
/* Called by bootblock_c_entry in the VBOOT_STARTS_BEFORE_BOOTBLOCK case */
|
/* Called by bootblock_c_entry in the VBOOT_STARTS_BEFORE_BOOTBLOCK case */
|
||||||
void boot_with_psp_timestamp(uint64_t base_timestamp);
|
void boot_with_psp_timestamp(uint64_t base_timestamp);
|
||||||
|
|
||||||
|
|
|
@ -61,12 +61,17 @@ void show_psp_transfer_info(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void replay_transfer_buffer_cbmemc(const struct transfer_info_struct *info)
|
void replay_transfer_buffer_cbmemc(void)
|
||||||
{
|
{
|
||||||
|
const struct transfer_info_struct *info = (const struct transfer_info_struct *)
|
||||||
|
(void *)(uintptr_t)_transfer_buffer;
|
||||||
|
|
||||||
void *cbmemc;
|
void *cbmemc;
|
||||||
size_t cbmemc_size;
|
size_t cbmemc_size;
|
||||||
|
|
||||||
|
if (!transfer_buffer_valid(info))
|
||||||
|
return;
|
||||||
|
|
||||||
if (info->console_offset < sizeof(*info))
|
if (info->console_offset < sizeof(*info))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ void boot_with_psp_timestamp(uint64_t base_timestamp)
|
||||||
if (!transfer_buffer_valid(info) || info->timestamp == 0)
|
if (!transfer_buffer_valid(info) || info->timestamp == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
replay_transfer_buffer_cbmemc(info);
|
replay_transfer_buffer_cbmemc();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* info->timestamp is PSP's timestamp (in microseconds)
|
* info->timestamp is PSP's timestamp (in microseconds)
|
||||||
|
|
|
@ -54,7 +54,7 @@ void verify_psp_transfer_buf(void);
|
||||||
/* Display the transfer block's PSP_info data */
|
/* Display the transfer block's PSP_info data */
|
||||||
void show_psp_transfer_info(void);
|
void show_psp_transfer_info(void);
|
||||||
/* Replays the pre-x86 cbmem console into the x86 cbmem console */
|
/* Replays the pre-x86 cbmem console into the x86 cbmem console */
|
||||||
void replay_transfer_buffer_cbmemc(const struct transfer_info_struct *info);
|
void replay_transfer_buffer_cbmemc(void);
|
||||||
/* Called by bootblock_c_entry in the VBOOT_STARTS_BEFORE_BOOTBLOCK case */
|
/* Called by bootblock_c_entry in the VBOOT_STARTS_BEFORE_BOOTBLOCK case */
|
||||||
void boot_with_psp_timestamp(uint64_t base_timestamp);
|
void boot_with_psp_timestamp(uint64_t base_timestamp);
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ void verify_psp_transfer_buf(void);
|
||||||
/* Display the transfer block's PSP_info data */
|
/* Display the transfer block's PSP_info data */
|
||||||
void show_psp_transfer_info(void);
|
void show_psp_transfer_info(void);
|
||||||
/* Replays the pre-x86 cbmem console into the x86 cbmem console */
|
/* Replays the pre-x86 cbmem console into the x86 cbmem console */
|
||||||
void replay_transfer_buffer_cbmemc(const struct transfer_info_struct *info);
|
void replay_transfer_buffer_cbmemc(void);
|
||||||
/* Called by bootblock_c_entry in the VBOOT_STARTS_BEFORE_BOOTBLOCK case */
|
/* Called by bootblock_c_entry in the VBOOT_STARTS_BEFORE_BOOTBLOCK case */
|
||||||
void boot_with_psp_timestamp(uint64_t base_timestamp);
|
void boot_with_psp_timestamp(uint64_t base_timestamp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue