Invalidate cache before first jump

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)
This commit is contained in:
Stefan Reinauer 2012-04-03 16:09:46 -07:00 committed by Stefan Reinauer
parent c6b2166d89
commit deda997833
1 changed files with 1 additions and 0 deletions

View File

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