From 8230258498a8448aa5b210c1356174f99b1352b8 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Fri, 16 Mar 2012 09:18:55 -0700 Subject: 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 Reviewed-on: https://gerrit.chromium.org/gerrit/18371 Reviewed-by: Stefan Reinauer --- arch/x86/cpu/start.S | 6 ------ 1 file changed, 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 -- cgit v1.2.3