lib: add ram_check_nodie
authorSven Schnelle <svens@stackframe.org>
Fri, 2 Dec 2011 15:23:06 +0000 (16:23 +0100)
committerSven Schnelle <svens@stackframe.org>
Thu, 12 Jan 2012 12:26:29 +0000 (13:26 +0100)
commit3ad8c54c01ab16b13eb9fe1cec8516aaed94c426
tree9eb666fefafa01a649f748edf901db25f2c53563
parent5db45b4d4aa318a7f5b9e9a46607762e74fac823
lib: add ram_check_nodie

The current implementation calls die() if memory checking fails.
This isn't always what we want: one might want to print error registers,
or do some other error handling. Introduce ram_check_nodie() for that
reason. It returns 0 if ram check succeeded, otherwise 1.

Change-Id: Ib9a9279120755cf63b5b3ba5e0646492c3c29ac2
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/532
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
src/include/lib.h
src/lib/ramtest.c