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>
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user