lib/ramtest: Fix ram_check() declarations

For a long time, second parameter 'stop' has been
ignored. The tested range is within 1 MiB above 'start'.

Change-Id: Icbf94cd6a651fbf0cd9aab97eb11f9b03f0c3c31
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48561
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kyösti Mälkki
2019-03-23 10:00:31 +02:00
committed by Patrick Georgi
parent 4c4f916172
commit e1aa9833c1
3 changed files with 8 additions and 8 deletions

View File

@@ -4708,7 +4708,7 @@ void raminit(const int s3resume, const u8 *spd_addrmap)
if (s3resume && cbmem_wasnot_inited) {
u32 reg32;
printk(BIOS_ERR, "Failed S3 resume.\n");
ram_check(0x100000, 0x200000);
ram_check_nodie(1 * MiB);
/* Clear SLP_TYPE. */
reg32 = inl(DEFAULT_PMBASE + 0x04);