Re: Translating virtual address to physical address in CE 6.0



Your *driver* for the device would be able to accomplish this, but your
*application* is not. Data will not be paged out, so you're correct, but
code can be. You need to build a driver for the hardware and have that
allocate the buffers, or at least do the mapping from virtual to physical,
and program the hardware.

Paul T.

"ENOSUCHLUSER" <ENOSUCHLUSER@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:48607CD8-CFE5-40D8-8864-6A415F90EE69@xxxxxxxxxxxxxxxx
Hello,

I have some data collection hardware that needs to be programmed with the
physical addresses of some buffers. These buffers are allocated from
general
memory (DDR2) and, of course, the addresses that my application has for
these
buffers are virtual addresses.

I don't think there is an easy way to translate a given virtual address to
its corresponding physical address in CE 6.0. Am I wrong?

Note that there is no paging in this system, so I don't think I need to
wire
various pages into memory. Feel free to set me straight on that, too, if
you
think this is a mistake.

Thanks,

John Sambrook



.



Relevant Pages

  • Re: CE6.0 Driver Pointer Marshalling - passing pointers out only?
    ... I've got a pretty complex driver I'm porting up at the moment ... This is an array of pointers to buffers that get set up ... the driver allocates the buffers (via an internal allocation ... routine from its own block of reserved memory). ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Help me, this sucks...
    ... It COULD be a memory issue, but since Windows manages mememory, it ... It COULD be a hardware issue, ... More likely it is a driver issue. ... Try to uninstall the sound card's ...
    (rec.audio.pro)
  • RE: XP locks up, how to troubleshoot?
    ... Run several hardware level tests such as memTest X86 for several hours to ... > harddrive, basic memory, video card, keyboard and mouse. ... >> I'm not convinced it's not a driver causing this, or some component of XP, ...
    (microsoft.public.windowsxp.general)
  • Re: Writing and reading from a physical address
    ... If you just return the pointer to the memory you got from ... driver to read or write some registers on the hardware. ... How can I do this through a driver. ... run my complete application in kernel mode. ...
    (microsoft.public.windowsce.app.development)
  • Re: Writing and reading from a physical address
    ... MmMapIoSpaceinto my application memory. ... driver to read or write some registers on the hardware. ... How can I do this through a driver. ... run my complete application in kernel mode. ...
    (microsoft.public.windowsce.app.development)