summaryrefslogtreecommitdiff
path: root/src/cpu/amd/pi/heapmanager.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2016-06-27 15:25:14 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2016-07-15 12:20:21 +0200
commitf32d5b8b66cb3679942501c39ee76587b8c0b0f1 (patch)
tree35d46f0bcaec1c883b2f6a74812dea964a2f8bab /src/cpu/amd/pi/heapmanager.c
parentbd274e1363b633c48650821e97953482ebd8d48a (diff)
AMD binaryPI: Split romstage ram stack
Change-Id: Ibbff1fdb1af247550815532ef12f078229f12321 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/15467 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/cpu/amd/pi/heapmanager.c')
-rw-r--r--src/cpu/amd/pi/heapmanager.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cpu/amd/pi/heapmanager.c b/src/cpu/amd/pi/heapmanager.c
index c5e4202090..d4a79b8b3c 100644
--- a/src/cpu/amd/pi/heapmanager.c
+++ b/src/cpu/amd/pi/heapmanager.c
@@ -25,13 +25,9 @@ UINT32 GetHeapBase(AMD_CONFIG_PARAMS *StdHeader)
{
UINT32 heap = BIOS_HEAP_START_ADDRESS;
-#if CONFIG_HAVE_ACPI_RESUME
- /* Both romstage and ramstage has this S3 detect. */
- if (acpi_get_sleep_type() == 3)
- heap = (UINT32) cbmem_find(CBMEM_ID_RESUME_SCRATCH) +
- (CONFIG_HIGH_SCRATCH_MEMORY_SIZE - BIOS_HEAP_SIZE);
- /* himem_heap_base + high_stack_size */
-#endif
+ if (acpi_is_wakeup_s3())
+ heap = (UINT32) cbmem_find(CBMEM_ID_RESUME_SCRATCH);
+
return heap;
}