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

网站安全代维wordpress添加导航页面

网站安全代维,wordpress添加导航页面,免费小程序网站,绵阳网站建设企业最近工作需要在 UEFI Shell 下Check EC Ram 的设定#xff0c;发现手上只有 Windows 下的读取工具(RW Everything)。于是研究了一下如何在Shell 读取 EC Ram。根据【参考1】读取的流程如下#xff1a;Port 66 CommandsThere are also some EC commands that use ports 0x66 …最近工作需要在 UEFI  Shell 下Check EC Ram 的设定发现手上只有 Windows 下的读取工具(RW Everything)。于是研究了一下如何在Shell 读取 EC Ram。根据【参考1】读取的流程如下Port 66 CommandsThere are also some EC commands that use ports 0x66 and0x62. Some of these are standard ACPI commands as defined in the external ACPIspec, others are custom.The port 66 protocol is essentially the standard ACPI ECinterface protocol.1. Wait for port66.IBF 02. Write command byte to port 66.3. For each outgoing data or address byte:3a. Wait for port66.IBF 03b. Write data or address byte to port 62.4. For each incoming data byte:4a. Wait for port66.OBF 14b. Read data byte from port 62.5. If the command requires no data or address bytes, you candetermine when the command was accepted/executed by waiting for port66.IBF0.同时 ACPI 定义的通用 Command如下ACPI-defined port 66 commands0x80 Read EC (write 0x80 to port 66, write address byte toport 62, read data byte from port 62)0x81 Write EC (write 0x81 to port 66, write address byte toport 62, write data byte to port 62)0x82 Burst Enable (write 0x82 to port 66, read data bytefrom port 62 - the data byte is burst ACK, value 0x90)0x83 Burst Disable (write 0x83 to port 66, wait forport66.IBF0)0x84 Query EC (i.e. read SCI event queue) (write 0x84 toport 66, read data byte from port 62). When the data byte is 0, it means thatthe SCI event queue is empty.最终根据上述资料编写一个 Application 如下#include #include #include #include extern EFI_SYSTEM_TABLE *gST;extern EFI_BOOT_SERVICES *gBS;#define TIMEOUT 0xFFFF#define ECCOMMAND 0x66#define ECSTATUS 0x66#define ECDATA 0x62#define EC_S_OBF BIT0#define EC_S_IBF BIT1#define ECREADCMD 0x80UINT8 MemBuffer[16][16];void WaitIBF() {UINT32 Status;UINTN Count;Count 0;Status 0;Status IoRead8 (ECSTATUS);while (((Status EC_S_IBF) ! 0)||(CountTIMEOUT)) {Status IoRead8 (ECSTATUS);Count;}}void WaitOBF() {UINT32 Status;UINTN Count;Count 0;Status 0;Status IoRead8 (ECSTATUS);while (((Status EC_S_OBF) 0)||(CountTIMEOUT)) {Status IoRead8 (ECSTATUS);Count;}}UINT8 ReadECRam(UINT8 Index) {WaitIBF(); //1IoWrite8(ECCOMMAND,0x80);//2WaitIBF(); //3aIoWrite8(ECDATA, Index); //3bWaitOBF(); //4areturn IoRead8(ECDATA); //4b}void GetData(){UINT8 i,j;for (i0;i16;i)for (j0;j16;j) {MemBuffer[i][j]ReadECRam(i*16j);}}void ShowData(){UINT8 i,j;Print(L );for (i0;i16;i) Print(L%02X ,i);Print(L\n);for (i0;i16;i) {Print(L%02X: ,i);for (j0;j16;j) {Print(L%02X ,MemBuffer[i][j]);}Print(L\n);}Print(L\n);}/***Print a welcoming message.Establishes the main structure of the application.retval 0 The application exited normally.retval Other An error occurred.***/INTNEFIAPIShellAppMain (IN UINTN Argc,IN CHAR16 **Argv){EFI_INPUT_KEY Key;Key.ScanCodeSCAN_NULL;while (SCAN_UP!Key.ScanCode){gST-ConOut-ClearScreen(gST-ConOut);GetData();ShowData();gST - ConIn - ReadKeyStroke(gST-ConIn,Key);Print(LPress Arrow-Up to exit\n);gBS-Stall(1000000UL);}return(0);}在实体机上运行结果如下(按向上键退出)源代码和Application(X64)下载参考1. http://wiki.laptop.org/go/Ec_specification
http://www.zqtcl.cn/news/292982/

相关文章:

  • 绍兴网站设计公司网站空间位置是什么
  • 高端网站设计品牌珠海网站建设最新报价
  • 做网站的商家怎么赚取流量费房地产怎么做网站推广
  • 企业网站建设基本流程网站积分方案
  • 网站定位与功能分析网站常见故障
  • 深圳电子商务网站制作桂林市防疫最新政策
  • 北京网站建设备案代理网站建设计划建议
  • 湛江公司做网站wordpress如何设置网站地图
  • wordpress攻防优化方案
  • 义乌市建设银行分行网站宜春静态管理
  • 企业网站优化电话17做网店类似网站
  • 南京网站建设黄页网站大全在线看免费
  • 网站开发过程记录定制西服
  • 长沙有哪些网站建设公司用vue做网站的实例
  • 购物网站模板 php网页设计图片剧中
  • 嘉峪关市建设局网站横沥镇网站建设公司
  • 查找网站软件培训记录
  • 注册网站安全吗制作人漫画
  • jeecms 怎么建设网站嵌入式软件开发兼职
  • 百度怎么自己做网站四川省建设工程交易中心网站
  • 中介如何做网站收客wordpress 运行代码
  • 网页设计与网站建设考试题目如何做建议的网站
  • 网站怎么推广软文政务网站建设存在问题
  • 公司官方网站建设需要多少钱wordpress单页面制作
  • 社群网站建设网站推广的方式有哪几种
  • 培训机构活动策划网站wordpress 改端口
  • 北京网站制作与营销培训用asp做网站视频
  • 江苏丹阳建设公司网站做网站中的剪辑图片
  • 纯静态网站怎样广州工程造价信息网
  • 为什么网页不能打开建设银行网站企业网站开发综合实训