ysht
2010-07-05 05:19:21 UTC
Hi,
I'm Yot and I'm writing a driver.
Here is my driver code:
===
DeviceExtension->SystemVirtualAddress = ExAllocatePool( NonPagedPool , Size6M );
DeviceExtension->Mdl = IoAllocateMdl( DeviceExtension->SystemVirtualAddress,
Size6M, FALSE, FALSE, NULL );
DeviceExtension->UserVirtualAddress = MmMapLockedPagesSpecifyCache(
DeviceExtension->Mdl,
UserMode, MmNonCached, NULL,
FALSE, NormalPagePriority);
---
After MmMapLockedPagesSpecifyCache returns the address of the mapped pages,
my application code accesses the address with it.
===
This code and my application code works well in WindowsXP
Professional Version 2002 SP3.
But in Windows Server 2003 R2 Standard Edition SP3,
MmMapLockedPagesSpecifyCache returns non-NULL value but my application code
can't access the address with it.
Therefore I use WindowsXP,but want to actually Windows Server 2003 now.
Can anyone provide suggestions ?
Any help or guidance would be appreciated.
Thanks!
I'm Yot and I'm writing a driver.
Here is my driver code:
===
DeviceExtension->SystemVirtualAddress = ExAllocatePool( NonPagedPool , Size6M );
DeviceExtension->Mdl = IoAllocateMdl( DeviceExtension->SystemVirtualAddress,
Size6M, FALSE, FALSE, NULL );
DeviceExtension->UserVirtualAddress = MmMapLockedPagesSpecifyCache(
DeviceExtension->Mdl,
UserMode, MmNonCached, NULL,
FALSE, NormalPagePriority);
---
After MmMapLockedPagesSpecifyCache returns the address of the mapped pages,
my application code accesses the address with it.
===
This code and my application code works well in WindowsXP
Professional Version 2002 SP3.
But in Windows Server 2003 R2 Standard Edition SP3,
MmMapLockedPagesSpecifyCache returns non-NULL value but my application code
can't access the address with it.
Therefore I use WindowsXP,but want to actually Windows Server 2003 now.
Can anyone provide suggestions ?
Any help or guidance would be appreciated.
Thanks!