Invalidate cache before first jump
authorStefan Reinauer <reinauer@chromium.org>
Tue, 3 Apr 2012 23:09:46 +0000 (16:09 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Thu, 5 Apr 2012 21:03:09 +0000 (23:03 +0200)
Some CPUs (Sandybridge) seem to require this, and it does not hurt
on other CPUs.

Change-Id: I4fdb281b2b684ab5fea999aae28ca08dce24da4d
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/869
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Tested-by: build bot (Jenkins)
src/cpu/x86/16bit/reset16.inc

index 1be0e3a94ca6e6d950c4d7e7e698b459c11d5f60..8dba3c836f208bb46efb7938fc39a4fa6d6ac39b 100644 (file)
@@ -2,6 +2,7 @@
        .code16
 .globl reset_vector
 reset_vector:
+       wbinvd
        .byte  0xe9
        .int   _start - ( . + 2 )
        /* Note: The above jump is hand coded to work around bugs in binutils.