mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: 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.
BUG=None
BRANCH=None
TEST=None
Signed-off-by: Kysti Mlkki <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>
Change-Id: I7418821997a980ae5b818bd57e8a1b6507a543af
Reviewed-on: https://chromium-review.googlesource.com/362342
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
4a525a2a76
commit
5feb9b51a0
1 changed files with 0 additions and 3 deletions
|
@ -89,9 +89,6 @@ static void prepare_ramstage_region(int s3resume)
|
|||
if (resume_backup_memory)
|
||||
memcpy_(resume_backup_memory, (void *) CONFIG_RAMBASE,
|
||||
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");
|
||||
|
|
Loading…
Add table
Reference in a new issue