Converting Phys to Vir Address

Hi,

How can I list the virtual addresses that map to a given physical address in WinDbg? In SoftIce there is the ‘phys’ command for that purpose.


Udo Eberhardt
Thesycon GmbH, Germany
xxxxx@thesycon.de
www.thesycon.de

I actually responded to this earlier, but I think it never got here.
Hopefully, they wont both show up an clutter the list :).

Anyway, as far as I know, there is no direct way to do this. Here are
some alternatives depending on what you need to do. If all you need to do
is read/write physical memory use “PEEK” and “POKE” to go direct.

If you need to access some Memory-Mapped registers, use !pcitree to find
your device, then !devext it to find the resource assignment, then !dd
address to see your registers.

I ready that you can also play with !ptov to see if it helps.

If all else fails, stick a breakpoint in your driver code, and when it
gets the mapping there, read it and write it down :slight_smile: It’s annoying, but
it works.

Your first posting did not show up. Thanks for re-posting it.


Udo Eberhardt
Thesycon GmbH, Germany
xxxxx@thesycon.de
www.thesycon.de

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@conexant.com
Sent: Friday, August 16, 2002 2:52 AM
To: Kernel Debugging Interest List
Subject: [windbg] Re: Converting Phys to Vir Address

I actually responded to this earlier, but I think it never got here.
Hopefully, they wont both show up an clutter the list :).

Anyway, as far as I know, there is no direct way to do this. Here are
some alternatives depending on what you need to do. If all you need to do
is read/write physical memory use “PEEK” and “POKE” to go direct.

If you need to access some Memory-Mapped registers, use !pcitree to find
your device, then !devext it to find the resource assignment, then !dd
address to see your registers.

I ready that you can also play with !ptov to see if it helps.

If all else fails, stick a breakpoint in your driver code, and when it
gets the mapping there, read it and write it down :slight_smile: It’s annoying, but
it works.


You are currently subscribed to windbg as: xxxxx@thesycon.de
To unsubscribe send a blank email to %%email.unsub%%