Re: [edk2] question about setuping IDT in UEFI boot procedure

2014-10-26 Thread TigerLiu
Hi, Jeff: Thanks for your quick reply! Another question: 1. MdeModulePkg\Core\DxeIplPeim\Ia32\DxeLoadFunc.c will reconstruct IDT before handing off to DXE. if (FeaturePcdGet(PcdDxeIplSwitchToLongMode)) { Why it need to reconstruct IDT when trying to switch to Long-mode? } Else

Re: [edk2] question about setuping IDT in UEFI boot procedure

2014-10-26 Thread Fan, Jeff
Exaclty. -Original Message- From: tiger...@via-alliance.com [mailto:tiger...@via-alliance.com] Sent: Monday, October 27, 2014 2:17 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] question about setuping IDT in UEFI boot procedure Hi, Jeff: Thanks for your reply! S3ResumeExecu

Re: [edk2] question about setuping IDT in UEFI boot procedure

2014-10-26 Thread TigerLiu
Hi, Jeff: Thanks for your reply! S3ResumeExecuteBootScript() (in UefiCpuPkg\Universal\Acpi\S3Resume2Pei\S3Resume.c) will call AsmReadIdtr (&PeiS3ResumeState->Idtr) to save IDT. And S3ResumeBootOs()(in UefiCpuPkg\Universal\Acpi\S3Resume2Pei\S3Resume.c) will call AsmWriteIdtr (&PeiS3ResumeState->

Re: [edk2] [PATCH v3 4/5] MdeModulePkg: AhciMode calls GetChannelInfo when enumerating

2014-10-26 Thread Tian, Feng
Hi, Reza Sorry, forget one thing about why we don't suggest directly putting the DuetPkg/SataController driver to PcAtChipsetPkg. DuetPkg is running after legacy bios, which means SATA controller has been initialized by legacy bios. So DuetPkg/SataController could directly read AHCI CAP regist

[edk2] Firmware Volume Block Protocol

2014-10-26 Thread Narinder Dhillon
Hi All, I am trying to implement a non-volatile variable storage on a small part of eMMC device. I have implemented the FVB protocol and the 'Read' function is being called with increasing 'Lba' during UEFI boot. Where is the 'Read' function is being called from ? (some sort of initialization cod