diff options
author | Sven Schnelle <svens@stackframe.org> | 2011-12-02 16:23:06 +0100 |
---|---|---|
committer | Sven Schnelle <svens@stackframe.org> | 2012-01-12 13:26:29 +0100 |
commit | 3ad8c54c01ab16b13eb9fe1cec8516aaed94c426 (patch) | |
tree | 9eb666fefafa01a649f748edf901db25f2c53563 /src/include | |
parent | 5db45b4d4aa318a7f5b9e9a46607762e74fac823 (diff) |
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>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |