Following patch flushes the instruction queue when we set PE=0. This is normally
authorRudolf Marek <r.marek@assembler.cz>
Thu, 16 Apr 2009 21:09:56 +0000 (21:09 +0000)
committerRudolf Marek <r.marek@assembler.cz>
Thu, 16 Apr 2009 21:09:56 +0000 (21:09 +0000)
commite4be46b4c39305e4224595f2655c2c9a439bc57c
treef241694f16a61d80116cc9131de945c0cb13301b
parentf9fab37ecb9b900550a904d95c9962f0ba65358f
Following patch flushes the instruction queue when we set PE=0. This is normally
done by FAR JMP, but here it is more tricky because we run at EIP>1MB. Many
thanks to Marc and Kevin to tell me how to fix it

The trick is to use 0x66 prefix (done with ljmpl) it will allow to jump in real
mode to any EIP addresses  ;)

Signed-off-by: Rudolf Marek <r.marek@assembler.cz>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4124 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
src/arch/i386/boot/wakeup.S