A couple of suggestions:
Having a boundaddr that is not a power of two is strange. Try 0x10000 instead of 0xffff.
Second suggestion is seeing if you can get the requested memory if you ask for a type other than MmNonCached.
Duane.
-----Original Message-----
From: Seshagiri Babu K V [mailto:xxxxx@sasken.com]
Sent: Monday, December 23, 2002 5:18 AM
To: NT Developers Interest List
Subject: [ntdev] Is there some problem with this code?
The function MmAllocateContiguousMemorySpecifyCache always returns NULL. The size being only 12K. I tried loading the driver at boot time, making it demand start etc. Is it the correct way to get buffer within 64k range?
lowaddr.LowPart = 0;
lowaddr.HighPart = 0;
highaddr.LowPart = 0xffffefff;
highaddr.HighPart = 0;
boundaddr.LowPart = 0x0000ffff;
boundaddr.HighPart = 0;
va = MmAllocateContiguousMemorySpecifyCache(size,
lowaddr,
highaddr,
boundaddr,
MmNonCached);
Thanks,
Giri.
You are currently subscribed to ntdev as: xxxxx@infiniconsys.com
To unsubscribe send a blank email to %%email.unsub%%