Re: Virtual to physical address Translation

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

 



Hello,

sri wrote:
                    I am a newbie to kernel ..
I am using a hardware debugger to debug the kernel start-up code for 2.4.18 kernel for which i have been setting a break point at the 0xffff0200 address location which i believe is the vector base address+0x24 (__trap_init+0x24 address location ). Now i have moved to 2.4.20 kernel for which the above break point is not working.. I could get the virtual address of this location from System.map file but not clear how to get the physical address..

On which architecture are you running ?

If it's x86 (but I don't think it is) with the default configuration (4G address space, 3G/1G split), then kernel virtual addresses are directly mapped to physical addresses with a 3G offset. So the formula to compute a physical address from a kernel virtual address is :

 physical = virtual - 3G

For other architectures, this may be different, in particular for architecture that have fixed address interrupt vectors.

Sincerly,

Thomas
--
Thomas Petazzoni
thomas.petazzoni@xxxxxxxx

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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