summaryrefslogtreecommitdiff
path: root/src/drivers/intel/fsp2_0
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-05-25 10:37:26 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-05-29 20:06:26 +0000
commit75c20157ab927aa1e453f710bab96618d556bb20 (patch)
treebe9cb0c04272fa60e756ab7be7ea1fc93986889f /src/drivers/intel/fsp2_0
parentea6dd747e8a49cfba8add8e59bc3900bc9b598df (diff)
downloadcoreboot-75c20157ab927aa1e453f710bab96618d556bb20.tar.xz
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>
Diffstat (limited to 'src/drivers/intel/fsp2_0')
-rw-r--r--src/drivers/intel/fsp2_0/hand_off_block.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drivers/intel/fsp2_0/hand_off_block.c b/src/drivers/intel/fsp2_0/hand_off_block.c
index c5c78cabf0..95b8020002 100644
--- a/src/drivers/intel/fsp2_0/hand_off_block.c
+++ b/src/drivers/intel/fsp2_0/hand_off_block.c
@@ -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