summaryrefslogtreecommitdiffstats
path: root/src/security/memory/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/security/memory/memory.c')
-rw-r--r--src/security/memory/memory.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/security/memory/memory.c b/src/security/memory/memory.c
index c815236c9c32..a1bc66372e86 100644
--- a/src/security/memory/memory.c
+++ b/src/security/memory/memory.c
@@ -14,7 +14,8 @@
* GNU General Public License for more details.
*/
-#include <types.h>
+#include <stdint.h>
+#include <security/intel/txt/txt.h>
#include "memory.h"
/**
@@ -27,6 +28,9 @@ bool security_clear_dram_request(void)
if (CONFIG(SECURITY_CLEAR_DRAM_ON_REGULAR_BOOT))
return true;
+ if (CONFIG(INTEL_TXT) && intel_txt_memory_has_secrets())
+ return true;
+
/* TODO: Add TEE environments here */
return false;