Add constants for fast path resume copying master
authorStefan Reinauer <reinauer@chromium.org>
Tue, 3 Apr 2012 23:21:04 +0000 (16:21 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 5 Apr 2012 22:33:16 +0000 (00:33 +0200)
commit61f4a744c0df43dbce816195b0e8ae12fc7b2479
tree6c94778ada0fc0e12b80a34cbb48a92ab6a13b38
parent5b6404e4195157eac8d97ae5bf30f45612109d57
Add constants for fast path resume copying

cache as ram does not usually cache the ram before it is up. Hence,
if romstage.c backs up resume memory, the involved memcpy is always
uncached. This makes resume very slow.
On Sandybridge we copy the memory later, after enabling caching, and
that allows us to resume in as little as 250ms.

Change-Id: I31a71ad4468679d39880cf9a8c4e497bb7addf8f
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/872
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
src/include/cbmem.h