summaryrefslogtreecommitdiff
path: root/src/security
diff options
context:
space:
mode:
Diffstat (limited to 'src/security')
-rw-r--r--src/security/memory/Kconfig5
-rw-r--r--src/security/memory/memory_clear.c3
2 files changed, 3 insertions, 5 deletions
diff --git a/src/security/memory/Kconfig b/src/security/memory/Kconfig
index 5104f34069..d3dec043df 100644
--- a/src/security/memory/Kconfig
+++ b/src/security/memory/Kconfig
@@ -4,9 +4,8 @@ menu "Memory initialization"
config PLATFORM_HAS_DRAM_CLEAR
bool
- default y if ARCH_X86
- default n
- depends on RELOCATABLE_RAMSTAGE
+ default y
+ depends on ARCH_X86
help
Selected by platforms that support clearing all DRAM
after DRAM initialization.
diff --git a/src/security/memory/memory_clear.c b/src/security/memory/memory_clear.c
index 031ca84abe..557125dcf8 100644
--- a/src/security/memory/memory_clear.c
+++ b/src/security/memory/memory_clear.c
@@ -77,8 +77,7 @@ static void clear_memory(void *unused)
void *baseptr = NULL;
size_t size = 0;
- /* Only skip CBMEM, as RELOCATABLE_RAMSTAGE is a requirement, no need
- * to separately protect stack or heap */
+ /* Only skip CBMEM, stage program, stack and heap are included there. */
cbmem_get_region(&baseptr, &size);
memranges_insert(&mem, (uintptr_t)baseptr, size, BM_MEM_TABLE);