aboutsummaryrefslogtreecommitdiff
path: root/src/resume.c
diff options
context:
space:
mode:
authorBen Warren <ben@skyportsystems.com>2017-02-20 19:56:19 -0800
committerKevin O'Connor <kevin@koconnor.net>2017-02-21 09:36:16 -0500
commit8f598a4641f98cf503653f80c779793d91c95a84 (patch)
treee1edca4c69921beac2ea67903db4adea7ed9fcb6 /src/resume.c
parent336b60bb10196adf287489cca4fd17092d9fac5e (diff)
downloadseabios-hppa-8f598a4641f98cf503653f80c779793d91c95a84.zip
seabios-hppa-8f598a4641f98cf503653f80c779793d91c95a84.tar.gz
seabios-hppa-8f598a4641f98cf503653f80c779793d91c95a84.tar.bz2
QEMU fw_cfg: Write fw_cfg back on S3 resume
Any pointers to BIOS-allocated memory that were written back to QEMU fw_cfg files are replayed when resuming from S3 sleep. Signed-off-by: Ben Warren <ben@skyportsystems.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/resume.c')
-rw-r--r--src/resume.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resume.c b/src/resume.c
index e67cfce..99fa34f 100644
--- a/src/resume.c
+++ b/src/resume.c
@@ -17,6 +17,7 @@
#include "string.h" // memset
#include "util.h" // dma_setup
#include "tcgbios.h" // tpm_s3_resume
+#include "fw/romfile_loader.h" // romfile_fw_cfg_resume
// Handler for post calls that look like a resume.
void VISIBLE16
@@ -105,6 +106,9 @@ s3_resume(void)
tpm_s3_resume();
s3_resume_vga();
+ /* Replay any fw_cfg entries that go back to the host */
+ romfile_fw_cfg_resume();
+
make_bios_readonly();
// Invoke the resume vector.