summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2012-03-16 09:18:55 -0700
committerGerrit <chrome-bot@google.com>2012-03-16 11:24:50 -0700
commit8230258498a8448aa5b210c1356174f99b1352b8 (patch)
treefb7298344b806ede1acc06fa080c3cb39a6d7f65
parent9c3e90d6a1086754c6899792dd3d8e19c0c8c03e (diff)
Remove code that disabled cache in _x86boot_start
When U-boot is loaded via verified boot it starts at the _x86boot_start entry point and promptly disables caching, resulting in about a 500ms hit to boot time. BUG=chrome-os-partner:8518 TEST=boot on lumpy with RW BIOS and gather timestamps to observe 500ms less time spent in u-boot init. Change-Id: I4eb1ad5ebcb20a156fef77452030e47a5e510115 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/18371 Reviewed-by: Stefan Reinauer <reinauer@google.com>
-rw-r--r--arch/x86/cpu/start.S6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/cpu/start.S b/arch/x86/cpu/start.S
index bb908a6654..4ff9e12293 100644
--- a/arch/x86/cpu/start.S
+++ b/arch/x86/cpu/start.S
@@ -47,12 +47,6 @@ _x86boot_start:
cli
cld
- /* Turn of cache (this might require a 486-class CPU) */
- movl %cr0, %eax
- orl $(X86_CR0_NW | X86_CR0_CD), %eax
- movl %eax, %cr0
- wbinvd
-
/* Tell 32-bit code it is being entered from an in-RAM copy */
movw $GD_FLG_WARM_BOOT, %bx
jmp 1f