Re: CeAllocAsynchronousBuffer functionality and VirtualAllocCopyEx

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



VirtualCopy maps a virtual address to some other address. If you specifiy the PHYSICAL flag then it assumes the address was physical. Dig around for VMAllocCopy in the private tree (wince600\private\winceos\coreos\nk\kernel\vm.c)

Note that it also sets the PAGE_NOCACHE flag if you are aliasing memory.
"
// For virtually-tagged cache AllocateAlias adds PAGE_NOCACHE
// to fProtect, so the dest buffer will be uncached. But the
// source buffer still needs to be uncached.
"


You could, of course, use a function designed to do the task, CeAllocAsynchronousBuffer, just a suggestion.....

Geoff
--

.