Hai;
I am using MmAllocateContiguousMemorySpecifyCache() function to allocate
the memory. then i map that meory to user space by using function
ZwMapViewOfSection(). I build that driver, that driver is working is fine. I
put my pci cards in any pci slot it is working. Today i put that slot in pcix
slot in my pc. Then MmAllocateContiguousMemorySpecifyCache() functions
succeeds, but ZwMapViewOfSection() fails.I dont know what is the behaviour
happening.
I show my function code below.
MmAllocateContiguousMemorySpecifyCache
(numDescBytes, phyAddrLowRange,
phyAddrRange, phyAddrMultiple,
(MEMORY_CACHING_TYPE)MmCached);
ZwMapViewOfSection(physicalMemoryHandle,
(HANDLE) -1,
&(PVOID)virtualAddress,
0L,
2,
&viewBase,
&size,
ViewShare,
0,
PAGE_READWRITE | PAGE_NOCACHE );
I dont know why it is not working in pcix slot.Please tell me what are the
possibilities.