ramstage_cache: allow ramstage usage add valid helper
commitbe2512973d04f3da3cebfd3e7ee10809fbe4ae4a
authorAaron Durbin <adurbin@chromium.org>
Thu, 12 Dec 2013 18:10:52 +0000 (12 10:10 -0800)
committerKyösti Mälkki <kyosti.malkki@gmail.com>
Sat, 10 May 2014 04:31:45 +0000 (10 06:31 +0200)
tree87e5998608c57917fd4c9c695238d223e0866563
parent7d34c6070b8fc2e8dc2f5274794e2374a883d4ce
ramstage_cache: allow ramstage usage add valid helper

Allow ramstage cache to be used from ramstage proper. Also
add a helper function for checking validity of ramstage
cache structure.

BUG=chrome-os-partner:22867
BRANCH=None
TEST=Built and booted. S3 resumed.

Change-Id: If1f2ad1bcf64504b42e315be243a12432b50e3d5
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/179775
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: http://review.coreboot.org/5011
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
src/include/ramstage_cache.h
src/lib/ramstage_cache.c