summaryrefslogtreecommitdiff
path: root/src/soc/intel/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r--src/soc/intel/common/block/ebda/ebda.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/soc/intel/common/block/ebda/ebda.c b/src/soc/intel/common/block/ebda/ebda.c
index 4f60490824..d16ad6e4c0 100644
--- a/src/soc/intel/common/block/ebda/ebda.c
+++ b/src/soc/intel/common/block/ebda/ebda.c
@@ -40,13 +40,12 @@ static void create_soc_ebda(struct ebda_config *cfg)
void fill_ebda_area(void)
{
struct ebda_config ebda_cfg;
- struct ebda_config *cfg = &ebda_cfg;
/* Initialize EBDA area early during romstage. */
setup_default_ebda();
- create_soc_ebda(cfg);
- create_mainboard_ebda(cfg);
- write_ebda_data(cfg, sizeof(*cfg));
+ create_soc_ebda(&ebda_cfg);
+ create_mainboard_ebda(&ebda_cfg);
+ write_ebda_data(&ebda_cfg, sizeof(ebda_cfg));
}
void retrieve_ebda_object(struct ebda_config *cfg)