Re: Mapping a specific physical address into kernel VA space, in interrupt context

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

 



On Wed, May 26, 2010 at 1:14 PM, Joel Fernandes <agnel.joel@xxxxxxxxx> wrote:
Hi Mayank,

> To support my kernel debugging tool, I need to examine memory at specific
> locations in the physical address space of a CPU.
> Obviously, I need to map these physical addresses into the VA space of the
> CPU. And this has to be done in an interrupt context, when the kernel
> debugger will have broken into the kernel.

That is exactly what kmap and kmap_atomic are used for. Did you try using these?

take care,
Joel

That looks promising. Thanks for the hint, I'll take a look to see if it works for me. I wonder if it works fine on x86_64 too, since it seems to return just page->virtual if (!HIGHMEM)

thanks,
-Mayank

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux