当前位置: 首页 > wzjs >正文

培训类网站建设东莞网站搜索排名

培训类网站建设,东莞网站搜索排名,plc编程软件,互联网建筑设计平台本节定义EFI_LOADED_IMAGE_PROTOCOL和 EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL。这些协议分别描述了已加载到内存中的映像,并指定了PE/COFF映像通过EFI引导服务LoadImage()加载 时使用的设备路径。这些描述包括 load image 的源、映像在内存中的当前位置、为image分…

本节定义EFI_LOADED_IMAGE_PROTOCOL和 EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL。这些协议分别描述了已加载到内存中的映像,并指定了PE/COFF映像通过EFI引导服务LoadImage()加载 时使用的设备路径。这些描述包括 load image 的源、映像在内存中的当前位置、为image分配的内存类型、 以及在调用image时传递给image的参数。

9.1 EFI Loaded Image Protocol

被 image handle 使用,用于获取加载的 Image 的信息。

///
/// Can be used on any image handle to obtain information about the loaded image.
///
typedef struct {UINT32                      Revision;     ///< Defines the revision of the EFI_LOADED_IMAGE_PROTOCOL structure.///< All future revisions will be backward compatible to the current revision.EFI_HANDLE                  ParentHandle; ///< Parent image's image handle. NULL if the image is loaded directly from///< the firmware's boot manager.EFI_SYSTEM_TABLE            *SystemTable; ///< the image's EFI system table pointer.//// Source location of image//EFI_HANDLE                  DeviceHandle; ///< The device handle that the EFI Image was loaded from.EFI_DEVICE_PATH_PROTOCOL    *FilePath;    ///< A pointer to the file path portion specific to DeviceHandle///< that the EFI Image was loaded from.VOID                        *Reserved;    ///< Reserved. DO NOT USE.//// Images load options//UINT32                      LoadOptionsSize; ///< The size in bytes of LoadOptions.VOID                        *LoadOptions;    ///< A pointer to the image's binary load options.//// Location of where image was loaded//VOID                        *ImageBase;    ///< The base address at which the image was loaded.UINT64                      ImageSize;     ///< The size in bytes of the loaded image.EFI_MEMORY_TYPE             ImageCodeType; ///< The memory type that the code sections were loaded as.EFI_MEMORY_TYPE             ImageDataType; ///< The memory type that the data sections were loaded as.EFI_IMAGE_UNLOAD            Unload;
} EFI_LOADED_IMAGE_PROTOCOL;

这个EFI_LOADED_IMAGE_PROTOCOL 是在需要加载 Image 的 driver 来 install,拿 SMM driver 来举例:

在 SMM driver entry 里面会来填充对应 image 的相关信息,包括 image 的地址。

9.2 EFI Loaded Image Device Path Protocol

安装后,Loaded Image Device Path Protocol 指定通过EFI引导服务LoadImage()加载 PE/COFF映像时使用的设备路径。Loaded Image Device Path Protocol 使用与第 10 章中定义的Device Path Protocol 相同的协议接口结构,只有 GUIID 不同。

Loaded Image Device Path Protocol 必须安装到EFI引导服务loadimage()加载的PE/COFF映像的映像句柄上。

在 Boot service-->loadimage 加载 image 之前需要将这个 device patch 复制到Boot service-->loadimage;

typedef struct {UINT8    Type;    ///< 0x01 Hardware Device Path.///< 0x02 ACPI Device Path.///< 0x03 Messaging Device Path.///< 0x04 Media Device Path.///< 0x05 BIOS Boot Specification Device Path.///< 0x7F End of Hardware Device Path.UINT8    SubType; ///< Varies by Type///< 0xFF End Entire Device Path, or///< 0x01 End This Instance of a Device Path and start a new///< Device Path.UINT8    Length[2]; ///< Specific Device Path data. Type and Sub-Type define///< type of data. Size of data is included in Length.
} EFI_DEVICE_PATH_PROTOCOL;

文章转载自:

http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://00000000.rxfgh.cn
http://www.dtcms.com/wzjs/602399.html

相关文章:

  • 做外贸平台还是网站汉语资源建设相关网站
  • 2019做什么类型网站成都市城乡建设管理局网站
  • 微网站开发项目合作协议wordpress视频链接
  • 网站怎样做自适应分辨率大小网页打不开但是微信和qq都可以上
  • 网站开发的税率是多少钱营销型网站建设有哪些平台
  • 网站seo新闻潜江网页设计
  • 超酷 flash 网站网站描述怎么写好
  • 网站做外链的具体步骤免费一键logo设计
  • 广告传媒建设网站标书制作软件
  • 哪家网站建设服务好啊中国新闻社是事业编制吗
  • 福田网站建设费用预算可不可以免费创建网站
  • 建设银行网站打不开 显示停止工作网站开发中背景图片怎么弄全屏
  • 泉州有哪些公司是做网站网网站建设
  • 建网站的公司公司十大免费跨境网站
  • 温州企业网站建设怀化网站优化公司有哪些
  • 安全网站建设情况企业营销策略
  • 单页面 网站怎么做的厦门网站建设哪家便宜
  • 企业建设门户网站的目的横琴网站建设
  • 泰安网站建设制作服务网站设计一个月多少钱
  • 大型网站建设公司优化一个网站
  • 网站建设布吉大连甘井子区二手房
  • 应用公园是免费的吗西安网站优化排名案例
  • 专门做简历的网站软件食品行业网站源码
  • 学做网站哪里学seo短视频网页入口引流网站推荐
  • 岳阳手机网站建设网站做动态图片
  • 网站模块下载温州网站建设得花多少钱
  • 做外贸网站卖什么好如何登陆wordpress
  • 推广企业网站域名政务中心网站建设方案
  • 高端网站制造做网站台式还是笔记本
  • 做网站广告费wordpress如何转换为中文