soc/intel/xeon_sp: Look up the IIO_HOB only once

The HOB does not move, place its location in .bss.

Change-Id: I2c6dbe4d64138e45fa1dfe7580ffa70d0441bd88
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47294
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Arthur Heymans 2020-11-06 11:45:41 +01:00 committed by Patrick Georgi
parent befec1e92e
commit 12985c1dd7
1 changed files with 4 additions and 1 deletions

View File

@ -105,9 +105,12 @@ int get_platform_thread_count(void)
const IIO_UDS *get_iio_uds(void)
{
size_t hob_size;
const IIO_UDS *hob;
static const IIO_UDS *hob;
const uint8_t fsp_hob_iio_universal_data_guid[16] = FSP_HOB_IIO_UNIVERSAL_DATA_GUID;
if (hob != NULL)
return hob;
hob = fsp_find_extension_hob_by_guid(fsp_hob_iio_universal_data_guid, &hob_size);
assert(hob != NULL && hob_size != 0);
return hob;