As a Programmer, got used to 0…2**n-1 instead of 1 to 2**n. This seems to be the real culprit.
I’ll check this and hopefully not get back
Thanks Duane.
Giri.
----- Original Message -----
From: McCrory, Duane
To: NT Developers Interest List
Sent: Tuesday, December 24, 2002 2:39 AM
Subject: [ntdev] RE: Is there some problem with this code?
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%%
You are currently subscribed to ntdev as: xxxxx@sasken.com
To unsubscribe send a blank email to %%email.unsub%%