[coreboot] Patch set updated for coreboot: ffae0e2 AMD agesa: add enable cache at the end of disable_cache_as_ram
Stefan Reinauer (stefan.reinauer@coreboot.org)
gerrit at coreboot.org
Fri Nov 2 20:08:26 CET 2012
Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1662
-gerrit
commit ffae0e2e88b1ba58b9d9829f28dd5379dd10ada6
Author: Siyuan Wang <wangsiyuanbuaa at gmail.com>
Date: Thu Nov 1 18:51:15 2012 +0800
AMD agesa: add enable cache at the end of disable_cache_as_ram
add this code according to src/include/cpu/x86/cache.h ,line 92,
functin enable_cache()
Change-Id: Ida96a98397eeed98dd61ca979e8c5a33bf00f9e5
Signed-off-by: Siyuan Wang <SiYuan.Wang at amd.com>
Signed-off-by: Siyuan Wang <wangsiyuanbuaa at gmail.com>
---
src/cpu/amd/agesa/cache_as_ram.inc | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/cpu/amd/agesa/cache_as_ram.inc b/src/cpu/amd/agesa/cache_as_ram.inc
index 389f7ec..9b9be33 100755
--- a/src/cpu/amd/agesa/cache_as_ram.inc
+++ b/src/cpu/amd/agesa/cache_as_ram.inc
@@ -96,10 +96,14 @@ disable_cache_as_ram:
AMD_DISABLE_STACK
+ /* enable cache */
+ movl %cr0, %eax
+ andl $0x9fffffff, %eax
+ movl %eax, %cr0
+ xorl %eax, %eax
+
/* Restore the return stack */
movd %xmm0, %esp
ret
cache_as_ram_setup_out:
-
-
More information about the coreboot
mailing list