sec/intel/txt/ramstage.c: Do not init the heap on S3 resume
It causes problems on Haswell: SINIT detects that the heap tables differ in size, and then issues a Class Code 9, Major Error Code 1 TXT reset. Change-Id: I26f3d291abc7b2263e0b115e94426ac6ec8e5c48 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46495 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
8f7e2a3add
commit
c037695c19
|
@ -407,6 +407,8 @@ static void lockdown_intel_txt(void *unused)
|
||||||
write64((void *)TXT_MSEG_SIZE, 0);
|
write64((void *)TXT_MSEG_SIZE, 0);
|
||||||
write64((void *)TXT_MSEG_BASE, 0);
|
write64((void *)TXT_MSEG_BASE, 0);
|
||||||
|
|
||||||
|
/* Only initialize the heap on regular boots */
|
||||||
|
if (!acpi_is_wakeup_s3())
|
||||||
txt_initialize_heap();
|
txt_initialize_heap();
|
||||||
|
|
||||||
if (CONFIG(INTEL_TXT_LOGGING))
|
if (CONFIG(INTEL_TXT_LOGGING))
|
||||||
|
|
Loading…
Reference in New Issue