summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/intel/fsp1_1/ramstage.c8
-rw-r--r--src/drivers/intel/fsp2_0/fsp_gop_blt.c6
2 files changed, 9 insertions, 5 deletions
diff --git a/src/drivers/intel/fsp1_1/ramstage.c b/src/drivers/intel/fsp1_1/ramstage.c
index 5c40966e4f..713770a8f6 100644
--- a/src/drivers/intel/fsp1_1/ramstage.c
+++ b/src/drivers/intel/fsp1_1/ramstage.c
@@ -76,9 +76,11 @@ static void fsp_run_silicon_init(FSP_INFO_HEADER *fsp_info_header)
load_vbt(&silicon_init_params);
mainboard_silicon_init_params(&silicon_init_params);
- if (CONFIG(BMP_LOGO))
- bmp_load_logo(&silicon_init_params.PcdLogoPtr,
- &silicon_init_params.PcdLogoSize);
+ if (CONFIG(BMP_LOGO)) {
+ size_t logo_size;
+ silicon_init_params.PcdLogoPtr = (uint32_t)(uintptr_t)bmp_load_logo(&logo_size);
+ silicon_init_params.PcdLogoSize = (uint32_t)logo_size;
+ }
/* Display the UPD data */
if (CONFIG(DISPLAY_UPD_DATA))
diff --git a/src/drivers/intel/fsp2_0/fsp_gop_blt.c b/src/drivers/intel/fsp2_0/fsp_gop_blt.c
index 8b64502224..f59bb86b76 100644
--- a/src/drivers/intel/fsp2_0/fsp_gop_blt.c
+++ b/src/drivers/intel/fsp2_0/fsp_gop_blt.c
@@ -237,13 +237,15 @@ void fsp_convert_bmp_to_gop_blt(uint32_t *logo, uint32_t *logo_size,
uint32_t *blt_ptr, uint32_t *blt_size,
uint32_t *pixel_height, uint32_t *pixel_width)
{
- uint32_t logo_ptr, logo_ptr_size, blt_buffer_size;
+ uint32_t logo_ptr;
+ size_t logo_ptr_size, blt_buffer_size;
efi_bmp_image_header *bmp_header;
if (!logo || !logo_size || !blt_ptr || !blt_size || !pixel_height || !pixel_width)
return;
- bmp_load_logo(&logo_ptr, &logo_ptr_size);
+ logo_ptr = (uint32_t)(uintptr_t)bmp_load_logo(&logo_ptr_size);
+
if (!logo_ptr || logo_ptr_size < sizeof(efi_bmp_image_header)) {
printk(BIOS_ERR, "%s: BMP Image size is too small.\n", __func__);
return;