Broadwell: Set boot_mode of pei_data before running reference code
Some actions are needed and some are not on the way resume from S3. BRANCH=master BUG=chrome-os-partner:33025,chrome-os-partner:33796 TEST=Built the image and confimed the boot_mode is correctly configured. Signed-off-by: Kenji Chen <kenji.chen@intel.com> Change-Id: Ia042ea8c63c2306e9d6a80d8efa66c4fc0722d85 Reviewed-on: https://chromium-review.googlesource.com/229615 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Commit-Queue: Kenji Chen <kenji.chen@intel.com> Tested-by: Kenji Chen <kenji.chen@intel.com>
This commit is contained in:
parent
4b623097a2
commit
40e719618e
1 changed files with 4 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ static pei_wrapper_entry_t load_reference_code(void)
|
|||
|
||||
void broadwell_run_reference_code(void)
|
||||
{
|
||||
int ret;
|
||||
int ret, dummy;
|
||||
struct pei_data pei_data;
|
||||
pei_wrapper_entry_t entry;
|
||||
|
||||
|
|
@ -174,6 +174,9 @@ void broadwell_run_reference_code(void)
|
|||
mainboard_fill_pei_data(&pei_data);
|
||||
broadwell_fill_pei_data(&pei_data);
|
||||
|
||||
pei_data.boot_mode = acpi_slp_type;
|
||||
pei_data.saved_data = (void *) &dummy;
|
||||
|
||||
entry = load_reference_code();
|
||||
if (entry == NULL) {
|
||||
printk(BIOS_ERR, "Reference code not found\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue