[coreboot-gerrit] Change in coreboot[master]: vc/amd/00670F00: Introduce S3FinalRestore helper

Marshall Dawson (Code Review) gerrit at coreboot.org
Thu Jan 25 23:24:49 CET 2018


Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/23442


Change subject: vc/amd/00670F00: Introduce S3FinalRestore helper
......................................................................

vc/amd/00670F00: Introduce S3FinalRestore helper

The Arch2008 spec describes an AmdS3FinalRestore Entry Point that
coreboot has been missing.  Add the helper function that can call
into the blob to execute this.

BUG=b:69614064

Change-Id: Ic72feb0406cd1d0d5c23e391c2464e12c9e10007
Signed-off-by: Marshall Dawson <marshalldawson3rd at gmail.com>
---
M src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
1 file changed, 14 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/23442/1

diff --git a/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c b/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
index bc3a2ec..9a1f247 100644
--- a/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
+++ b/src/vendorcode/amd/pi/00670F00/binaryPI/AGESA.c
@@ -210,6 +210,20 @@
 }
 
 /**********************************************************************
+ * Interface call:  AmdS3FinalRestore
+ **********************************************************************/
+AGESA_STATUS
+AmdS3FinalRestore (
+  IN OUT   AMD_S3FINAL_PARAMS    *S3FinalParams
+  )
+{
+	MODULE_ENTRY Dispatcher = agesa_get_dispatcher();
+	S3FinalParams->StdHeader.Func = AMD_S3FINAL_RESTORE;
+	if (!Dispatcher) return AGESA_UNSUPPORTED;
+	return Dispatcher(S3FinalParams);
+}
+
+/**********************************************************************
  * Interface call:  AmdInitRtb
  **********************************************************************/
 AGESA_STATUS

-- 
To view, visit https://review.coreboot.org/23442
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic72feb0406cd1d0d5c23e391c2464e12c9e10007
Gerrit-Change-Number: 23442
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180125/d81a717b/attachment-0001.html>


More information about the coreboot-gerrit mailing list