AMD k8 fam10: Fix CAR GLOBALS late in romstage
Zero-filling memory below 1 MiB resets car_migrated variable so
any CAR GLOBALs are not addressed correctly for the remaining
time in romstage. Also there is no actual need to do this as
ramstage loader handles BSS.
This fixes regression with commit 70cd54310
that broke fam10 boards
with romstage spinlocks enabled.
Change-Id: I7418821997a980ae5b818bd57e8a1b6507a543af
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/15754
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
This commit is contained in:
parent
7899db2355
commit
a877b74a79
|
@ -89,9 +89,6 @@ static void prepare_ramstage_region(int s3resume)
|
||||||
if (resume_backup_memory)
|
if (resume_backup_memory)
|
||||||
memcpy_(resume_backup_memory, (void *) CONFIG_RAMBASE,
|
memcpy_(resume_backup_memory, (void *) CONFIG_RAMBASE,
|
||||||
HIGH_MEMORY_SAVE - backup_top);
|
HIGH_MEMORY_SAVE - backup_top);
|
||||||
memset_((void*) CONFIG_RAMBASE, 0, HIGH_MEMORY_SAVE - backup_top);
|
|
||||||
} else {
|
|
||||||
memset_((void*)0, 0, CONFIG_RAMTOP - backup_top);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print_car_debug(" Done\n");
|
print_car_debug(" Done\n");
|
||||||
|
|
Loading…
Reference in New Issue