Re: [edk2] [PATCH v2 5/7] UefiCpuPkg: Update SmmCpuFeatureLib pass XCODE5 tool chain

2018-01-16 Thread Yao, Jiewen
Reviewed-by: jiewen@intel.com > -Original Message- > From: Gao, Liming > Sent: Thursday, January 11, 2018 5:05 PM > To: edk2-devel@lists.01.org > Cc: Andrew Fish ; Yao, Jiewen ; > Dong, Eric ; Laszlo Ersek

[edk2] [PATCH v2 5/7] UefiCpuPkg: Update SmmCpuFeatureLib pass XCODE5 tool chain

2018-01-11 Thread Liming Gao
In V2, use "mov rax, strict qword 0" to replace the hard code db. 1. Use lea instruction to get the address instead of mov instruction. 2. Use the dummy address as jmp destination, and add the logic to fix up the address to the absolute address at boot time. Contributed-under: TianoCore