CBMEM: Fix S3 resume path without EARLY_CBMEM_INIT
commite1fb052ed70b0471ece637f37db01bde6d4b9076
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Mon, 25 May 2015 21:30:10 +0000 (26 00:30 +0300)
committerAaron Durbin <adurbin@chromium.org>
Tue, 26 May 2015 17:10:23 +0000 (26 19:10 +0200)
tree8950e49321e861cebe87460886932b84d18d0c79
parent28d5ec9a7d8fe11175c8907cc6fa0305c469b194
CBMEM: Fix S3 resume path without EARLY_CBMEM_INIT

Implementation for cbmem_find() did not work for boards without
EARLY_CBMEM_INIT in romstage.

This is required for S3 resume to work on AGESA plaforms.

First broken with commit 0dff57d
   cbmem: switch over to imd-based cbmem

Change-Id: I9c1a4f6839f5d90f825787baad2a3824a04b5bdc
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/10299
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
src/arch/x86/boot/cbmem.c
src/lib/imd_cbmem.c