locked
PCI读取物理内存地址错误 wdm RRS feed

  • 问题

  • 通过IRP_MN_START_DEVICE读取PCI物理地址是0xf7bff000,同时长度为0,而通过RW-Read write软件查看PCI卡的物理地址是0xF7bef000,代码是按《windows驱动开发技术指南》中读取PCI设备驱动test来读取的。我通过WDF编写一个测试程序读取PCI物理内存也是0xf7bff000,求教,我读取PCI卡内存物理地址错误问题出在那,谢谢

    打印数据如下所示!Port RegsPhybase = 0XF7BFF000 and Hight = 0x0 and Low = 0x0 and uHight = 0xf7bff000 and uLow = 0x0 KdPrint(("Port RegsPhybase = 0X%08X and Hight = 0x%x and Low = 0x%x and uHight = 0x%x and uLow = 0x%x\n",pdx->RegsTempPhybase ,\ pdx->RegsTempPhybase.HighPart,pdx->RegsTempPhybase.LowPart,pdx->RegsTempPhybase.u.HighPart,pdx->RegsTempPhybase.u.LowPart ));

    2017年3月28日 9:31