2.7 Pre-EFI Initialization Modules (PEIMs)
Pre-EFI Initialization Modules (PEIMs) are specialized drivers that personalize the PEI Foundation
to the platform. They are analogous to DXE drivers and generally correspond to the components
being initialized. It is the responsibility of the PEI Foundation code to dispatch the PEIMs in a
sequenced order and provide basic services. The PEIMs are intended to mirror the components
being initialized.
PEIM是一类专门的驱动,对于平台来说这样使PEI Foundation有针对性。它们类似于DXE驱动,通常对应于要被初始化的组件。有序的调度PEIMs和提供基础的服务是PEI Foundation code。PEIMs就对应着相关组件被初始化。
Communication between PEIMs is not easy in a “memory poor” environment. Nonetheless, PEIMs
cannot be coded without some interaction between one another and, even if they could, it would be
inefficient to do so. The PEI phase provides mechanisms for PEIMs to locate and invoke interfaces
from other PEIMs.
在内存资源匮乏的早期,PEIM之间的通信并不是容易的。尽管如此PEIM的编写还是无法离开一个另一个的交互,如果可以的话那也是低效率的。PEI阶段提供了一种机制,可以在PEIM中去定位和唤起来自于其他PEIM中的interface。
Because the PEI phase exists in an environment where minimal hardware resources are available and
execution is performed from the boot firmware device, it is strongly recommended that PEIMs do
the minimum necessary work to initialize the system to a state that meets the prerequisites of the
DXE phase.
因为PEI阶段存在于少数可用的硬件资源和boot firmware设备中执行,所以强烈建议PEIMs做最小必要的工作,将系统初始化到满足DXE阶段预先需要的条件状态。
It is expected that, in the future, common practice will be that the vendor of a software or hardware
component will provide the PEIM (possibly in source form) so the customer can debug integration
problems quickly.
预计在未来,通常的做法是软件或硬件组件的供应商将提供PEIM(可能以源代码的形式),以便客户能够快速调试集成问题。