]> git.proxmox.com Git - mirror_edk2.git/commit - IntelFspWrapperPkg/Library/BaseFspApiLib/X64/DispatchExecute.c
Fix >4G issue on IDT not restored correctly.
authorYao, Jiewen <jiewen.yao@intel.com>
Tue, 15 Dec 2015 04:27:00 +0000 (04:27 +0000)
committerjyao1 <jyao1@Edk2>
Tue, 15 Dec 2015 04:27:00 +0000 (04:27 +0000)
commit3b567f08f99df24a31fa06750171b7050e08f966
tree1c5e72c98ffbf75a9659de7c4a6f6f9f342248ec
parentfb567b2f7400dc615ea8195efb33935e32a13f40
Fix >4G issue on IDT not restored correctly.

Idtr might be changed inside of FSP. 32bit FSP only knows the <4G address.
If IDTR.Base is >4G, FSP can not handle. So we need save/restore IDTR here.
Interrupt is already disabled here, so it is safety to update IDTR.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Ma, Maurice" <maurice.ma@intel.com>
Reviewed-by: "Mudusuru, Giri P" <giri.p.mudusuru@intel.com>
Reviewed-by: "Yarlagadda, Satya P" <satya.p.yarlagadda@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19246 6f19259b-4bc3-4df7-8a09-765794883524
IntelFspWrapperPkg/Library/BaseFspApiLib/X64/DispatchExecute.c