drivers/intel/fsp2_0: Dont' use CAR_GLOBAL

All platforms using this code have NO_CAR_GLOBAL_MIGRATION.

Change-Id: Ic50b16916261abb8c63b8fe571819af5c830ff8d
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33003
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Arthur Heymans 2019-05-25 10:37:26 +02:00 committed by Patrick Georgi
parent ea6dd747e8
commit 75c20157ab
1 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,6 @@
* (at your option) any later version.
*/
#include <arch/early_variables.h>
#include <device/mmio.h>
#include <cbmem.h>
#include <commonlib/helpers.h>
@ -100,7 +99,7 @@ struct hob_resource *fsp_hob_header_to_resource(const struct hob_header *hob)
* Utilities for locating and identifying HOBs
*/
static void *fsp_hob_list_ptr CAR_GLOBAL;
static void *fsp_hob_list_ptr;
static void save_hob_list(int is_recovery)
{
@ -122,14 +121,14 @@ const void *fsp_get_hob_list(void)
uint32_t *list_loc;
if (ENV_ROMSTAGE)
return (void *)car_get_var(fsp_hob_list_ptr);
return fsp_hob_list_ptr;
list_loc = cbmem_find(CBMEM_ID_FSP_RUNTIME);
return (list_loc) ? (void *)(uintptr_t)(*list_loc) : NULL;
}
void *fsp_get_hob_list_ptr(void)
{
return car_get_var_ptr(&fsp_hob_list_ptr);
return &fsp_hob_list_ptr;
}
static const