aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/cannonlake
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/cannonlake')
-rw-r--r--src/soc/intel/cannonlake/memmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/intel/cannonlake/memmap.c b/src/soc/intel/cannonlake/memmap.c
index 0636b08abe..108a1b016c 100644
--- a/src/soc/intel/cannonlake/memmap.c
+++ b/src/soc/intel/cannonlake/memmap.c
@@ -316,7 +316,6 @@ void cbmem_top_init(void)
void *cbmem_top(void)
{
struct ebda_config ebda_cfg;
- struct ebda_config *cfg = &ebda_cfg;
/*
* Check if Tseg has been initialized, we will use this as a flag
@@ -327,7 +326,7 @@ void *cbmem_top(void)
if (sa_get_tseg_base() == 0)
return NULL;
- retrieve_ebda_object(cfg);
+ retrieve_ebda_object(&ebda_cfg);
- return (void *)(uintptr_t)cfg->tolum_base;
+ return (void *)(uintptr_t)ebda_cfg.tolum_base;
}