- 論壇徽章:
- 0
|
原帖由 Solaris12 于 2009-5-21 18:01 發(fā)表 ![]()
你確定嗎?
同事說他做了這個實驗,
1. 讀ACPI設備配置空間的基地址
2. 找一個不存在的BDF, 算出這個設備配置空間的基地址
3. 訪問內(nèi)存方式,讀這個設備的vendorid
4. sparc panic, x86沒有 ...
>>找一個不存在的BDF, 算出這個設備配置空間的基地址
你說的這個不是MMIO,是port I/O。訪問PCI配置空間是通過0xCF8~0xCFF端口訪問的。
對于非法訪問訪問返回全1在PCI spec中有規(guī)定:
Since 0 FFFFh is an invalid Vendor ID, it is adequate
for the host bus to PCI bridge to return a value of all 1's on read accesses to Configuration
Space registers of non-existent devices. (Note that these accesses will be terminated with a
Master-Abort.) |
|