From 3ad8c54c01ab16b13eb9fe1cec8516aaed94c426 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Fri, 2 Dec 2011 16:23:06 +0100 Subject: 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 Reviewed-on: http://review.coreboot.org/532 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/include/lib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/lib.h b/src/include/lib.h index ba9684a0c1..bbe735f89a 100644 --- a/src/include/lib.h +++ b/src/include/lib.h @@ -37,6 +37,7 @@ void move_gdt(void); /* Defined in src/lib/ramtest.c */ void ram_check(unsigned long start, unsigned long stop); +int ram_check_nodie(unsigned long start, unsigned long stop); void quick_ram_check(void); /* Defined in romstage.c */ -- cgit v1.2.3