summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Dxe.c
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2017-02-22 10:34:48 +0100
committerLaszlo Ersek <lersek@redhat.com>2017-03-14 21:49:32 +0100
commitda58d987cc894b12fbe208bf66d3f129817f771b (patch)
tree687e8c8217e51fbedb8dddbde3a3739596951071 /OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Dxe.c
parent33ead2dd14073ce747d1a623975fc55d9fe84640 (diff)
downloadedk2-da58d987cc894b12fbe208bf66d3f129817f771b.tar.gz
edk2-da58d987cc894b12fbe208bf66d3f129817f771b.tar.bz2
edk2-da58d987cc894b12fbe208bf66d3f129817f771b.zip
OvmfPkg/QemuFwCfgS3Lib: implement opcode APIs for PEI fw_cfg instance
In the PEI fw_cfg instance: - QemuFwCfgS3Enabled() queries S3 enablement via fw_cfg. This behavior is shared with the DXE fw_cfg instance, and the PEI fw_cfg instance already pulls in the function from "QemuFwCfgS3PeiDxe.c". - If QemuFwCfgS3Enabled() returns TRUE, the client module is permitted to call QemuFwCfgS3CallWhenBootScriptReady(). However, in the PEI phase we have no support for capturing ACPI S3 Boot Script opcodes, hence we return RETURN_UNSUPPORTED unconditionally. This behavior is unique to the PEI fw_cfg instance, so add the function to "QemuFwCfgS3Pei.c". - Consequently, the QemuFwCfgS3ScriptWriteBytes(), QemuFwCfgS3ScriptReadBytes(), QemuFwCfgS3ScriptSkipBytes(), and QemuFwCfgS3ScriptCheckValue() functions must never be called. (They could only be called from the client module's callback, but QemuFwCfgS3CallWhenBootScriptReady() will never install such callback in the PEI fw_cfg instance -- see above.) This behavior is not unique to the PEI fw_cfg instance (it is shared with the Base Null instance), so pull in these functions from "QemuFwCfgS3BasePei.c". Cc: Jordan Justen <jordan.l.justen@intel.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=394 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Dxe.c')
0 files changed, 0 insertions, 0 deletions