Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43300 )
Change subject: arch/x86/acpi_s3.c: Verify RAM contents on S3 resume ......................................................................
arch/x86/acpi_s3.c: Verify RAM contents on S3 resume
This verifies the RAM right before we jump to the wake vector.
BUG=b:159081993 TEST=Resume trembyle from S3 and see hash verification
Signed-off-by: Raul E Rangel rrangel@chromium.org Change-Id: Id8a03dd6a46c777309ec6544f098ff404ea88f4b --- M src/arch/x86/acpi_s3.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/00/43300/1
diff --git a/src/arch/x86/acpi_s3.c b/src/arch/x86/acpi_s3.c index 4872c07..dea2104 100644 --- a/src/arch/x86/acpi_s3.c +++ b/src/arch/x86/acpi_s3.c @@ -8,6 +8,7 @@ #include <cpu/x86/smm.h> #include <fallback.h> #include <timestamp.h> +#include <ram_hash.h> #include <romstage_handoff.h>
#if ENV_RAMSTAGE || ENV_POSTCAR @@ -69,6 +70,9 @@
timestamp_add_now(TS_ACPI_WAKE_JUMP);
+ if (CONFIG(ENABLE_RAM_HASH)) + soc_verify_ram(); + acpi_do_wakeup((uintptr_t)vector); }