]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg PiSmmCpuDxeSmm: Update Ia32/MpFuncs.nasm
authorLiming Gao <liming.gao@intel.com>
Tue, 14 Jun 2016 08:26:46 +0000 (16:26 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 28 Jun 2016 01:52:13 +0000 (09:52 +0800)
commit55c6d5467ec99653d08c01ede8412cfe7ea0d4e7
treeba49796be51bb036d756173cabb19d15f09c3f2f
parent6997711e7fd6733363bae21c4398fcc239f7aa41
UefiCpuPkg PiSmmCpuDxeSmm: Update Ia32/MpFuncs.nasm

Use 16bit assembly code to replace hard code db.

In V2:
Add 0x67 prefix to far jump

When we enter protected mode, with the far jump still in big real mode,
the JMP instruction not only needs the 0x66 prefix (for 32-bit operand
size), but also the 0x67 prefix (for 32-bit address size). Use the a32
nasm modifier to enforce this.

This bug breaks S3 resume in the Ia32 + SMM_REQUIRE build of OVMF.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/MpFuncs.nasm