Move calls to quick_ram_check() before CBMEM init
After raminit completes, do a read-modify-write test just below CBMEM top address. If test fails, die(). Change-Id: I33d4153a5ce0908b8889517394afb46f1ca28f92 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31978 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
This commit is contained in:
committed by
Patrick Georgi
parent
12724d6ad6
commit
f5cf60f25b
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <lib.h>
|
||||
#include <timestamp.h>
|
||||
#include <arch/io.h>
|
||||
#include <device/mmio.h>
|
||||
@@ -114,9 +113,6 @@ void romstage_main_continue(EFI_STATUS status, void *hob_list_ptr) {
|
||||
/* Decode E0000 and F0000 segment to DRAM */
|
||||
sideband_write(B_UNIT, BMISC, sideband_read(B_UNIT, BMISC) | (1 << 1) | (1 << 0));
|
||||
|
||||
quick_ram_check();
|
||||
post_code(0x4d);
|
||||
|
||||
cbmem_was_initted = !cbmem_recovery(0);
|
||||
|
||||
/* Save the HOB pointer in CBMEM to be used in ramstage*/
|
||||
|
Reference in New Issue
Block a user