Arthur Heymans has uploaded this change for review.

View Change

drivers/txt/getsec_enteraccs.S: Make sure the MTRR save hits dram

Since we change the caching setup it is probably a good idea to make
sure our saved MTRR setup hits dram.

Change-Id: Ifa04f6de8af35c043fe049bc9a1bd3a8a4f1c330
Signed-off-by: Arthur Heymans <>
M src/security/intel/txt/getsec_enteraccs.S
1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh:// refs/changes/76/46376/1
diff --git a/src/security/intel/txt/getsec_enteraccs.S b/src/security/intel/txt/getsec_enteraccs.S
index 563dc08..31f41ed 100644
--- a/src/security/intel/txt/getsec_enteraccs.S
+++ b/src/security/intel/txt/getsec_enteraccs.S
@@ -107,6 +107,7 @@
movl %cr0, %eax
orl $(CR0_CD | CR0_NW), %eax
movl %eax, %cr0
+ wbinvd

/* Disable fixed MTRRs */
movl $(MTRR_DEF_TYPE_MSR), %ecx

To view, visit change 46376. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ifa04f6de8af35c043fe049bc9a1bd3a8a4f1c330
Gerrit-Change-Number: 46376
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <>
Gerrit-MessageType: newchange