[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is memory allocation boundery in Dindows?



Henry,
>     Due to the special design of our PCI card, our Windows driver needs
> to allocate memory in a large size boundary. What is the memory boundary
> size in Windows? It seems to be 4KB in Unix. Is this the case in
> Windows?
Yes. 
MAX_PAGE_SIZE is a system define in NT/XP. It's been 4K (4096 bytes)
since day one; it's unlikely to change in the IA32 world. MAX_PAGE_SIZE
is also the maximum size of physically contiguous memory you should
count on for a WindowsNT/XP system. To use larger amounts of memeory,
your PCI card needs to have its own page table system.

-- 
regards,
_daev

 * * * * * * * * * * * * * * * * * * * * *
   Creative Advanced Technology Center
  Daev Roehr, Liaison Engineer ala mode
 daevr@atc.creative.com - 831.440.2832
"Stanley looked quite bored and somewhat 
 detached, but then penguins often do."
     Edward Bulwar Lytton prize