diff options
author | arch import user (historical) <svn@openbios.org> | 2005-07-06 18:17:43 +0000 |
---|---|---|
committer | arch import user (historical) <svn@openbios.org> | 2005-07-06 18:17:43 +0000 |
commit | fb07bf4acaf7a86b2dd5c38beaa43f5d06c54e7b (patch) | |
tree | 874af742fb52988ed4553664f8e70dddd203ecb1 /src/cpu/x86/car/cache_as_ram_post.c | |
parent | 59140ccdf384346ab0a6112baee175a01ed5bd9f (diff) | |
download | coreboot-fb07bf4acaf7a86b2dd5c38beaa43f5d06c54e7b.tar.xz |
Revision: linuxbios@linuxbios.org--devel/freebios--devel--2.0--patch-62
Creator: Yinghai Lu <yhlu@tyan.com>
add eswar code in intel car to disable Hyperthreading
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1980 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/x86/car/cache_as_ram_post.c')
-rw-r--r-- | src/cpu/x86/car/cache_as_ram_post.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/cpu/x86/car/cache_as_ram_post.c b/src/cpu/x86/car/cache_as_ram_post.c index 8cbc1e9cba..a0b6b17851 100644 --- a/src/cpu/x86/car/cache_as_ram_post.c +++ b/src/cpu/x86/car/cache_as_ram_post.c @@ -12,17 +12,21 @@ "movl %eax, %cr0\n\t" /* clear sth */ - "movl $0x200, %ecx\n\t" + "movl $0x269, %ecx\n\t" /* fix4k_c8000*/ "xorl %edx, %edx\n\t" "xorl %eax, %eax\n\t" "wrmsr\n\t" - "movl $0x201, %ecx\n\t" +#if DCACHE_RAM_SIZE > 0x8000 + "movl $0x268, %ecx\n\t" /* fix4k_c0000*/ "wrmsr\n\t" +#endif - /* enable fast string operation */ - "movl $0x1a0, %ecx\n\t" - "rdmsr\n\t" - "orl $1, %eax\n\t" + /* Set the default memory type and disable fixed and enable variable MTRRs */ + "movl $0x2ff, %ecx\n\t" +// "movl $MTRRdefType_MSR, %ecx\n\t" + "xorl %edx, %edx\n\t" + /* Enable Variable and Disable Fixed MTRRs */ + "movl $0x00000800, %eax\n\t" "wrmsr\n\t" #if defined(CLEAR_FIRST_1M_RAM) |