On 04/26/14 02:16, WANG Siyuan wrote: > Hi Laszlo, > Thank you for replaying. I have problem with EFI_SMM_ACCESS2_PROTOCOL so > I cannot load PiSmmIpl. > I want to know whether my method is correct. > 1) load <MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf> and > <MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf> can load DXE_SMM_DRIVER?
Yes, I think so. I checked some older patches of mine. If you include the SMM IPL and the SMM core in your firmware, and you can convince them to start (by providing the two protocols I mentioned), then loading SMM DXE drivers should work too. > 2) anything else is need? > 3) how to fake EFI_SMM_ACCESS2_PROTOCOL and EFI_SMM_CONTROL2_PROTOCOL in > emulator? Read their documentation in the PI spec, and try to do nothing to implement them, as much as possible. Provide a single memory range (backed by "usual" runtime memory allocation, or by a fixed range you allocate in some other way) as SMRAM. For example, see http://thread.gmane.org/gmane.comp.bios.tianocore.devel/5257/focus=5258 In order to make it work at runtime, you probably have to convert some pointers with EfiConvertPointer() too. (I didn't get that far in my SMM "adventures".) The way you fake SMRAM probably has to consider the platform too (eg. Duet vs. OVMF). Laszlo ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel