mb/roda/rk9: Fix cbmem recovery on resume path
By calling cbmem_recovery() with `0`, we rewrote the cbmem table even on the resume path. By that, we lost the OS' resume vector and ended up loading the payload. Change-Id: Ic24a12d4143d6924321b1d01f07a467c58c4e9ea Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: http://review.coreboot.org/12420 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
aad34cda4b
commit
8a44b0b18c
|
@ -186,7 +186,7 @@ void main(unsigned long bist)
|
|||
|
||||
init_iommu();
|
||||
|
||||
cbmem_initted = !cbmem_recovery(0);
|
||||
cbmem_initted = !cbmem_recovery(s3resume);
|
||||
#if CONFIG_HAVE_ACPI_RESUME
|
||||
/* If there is no high memory area, we didn't boot before, so
|
||||
* this is not a resume. In that case we just create the cbmem toc.
|
||||
|
|
Loading…
Reference in New Issue