Re: VMA vs LMA?



On Aug 29, 7:19 am, David Brown <da...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:

ROM'ed program, where the program is run directly from the ROM rather
than being first copied into RAM (in which case you have the same
situation as an OS and a file), the code at the beginning of the program
copies the data across and also clears the bss - this is part of the

The other place where it's common to see VMA != LMA (and code that
cares about the difference) is when initializing the MMU. You may have
code that's physically contiguous across a block of LMAs, but the
first few bytes set up the MMU and execution then passes to a new VMA.

.



Relevant Pages

  • Re: VMA vs LMA?
    ... LMA/VMA are the same, because you are running entirely from RAM. ... the LMA and the VMA are the same - the program runs directly from the flash it resides in. ... The only exception is that the startup code also refers to the LMA of the data section, so that it can do the initial copy. ...
    (comp.arch.embedded)
  • Re: VMA vs LMA?
    ... What is the difference between VMA (Virtual Memory Address) and LMA ... or load memory address. ...
    (comp.arch.embedded)
  • VMA vs LMA?
    ... What is the difference between VMA (Virtual Memory Address) and LMA ... or load memory address. ...
    (comp.arch.embedded)
  • Re: VMA vs LMA?
    ... When writing a program where one wants different LMA and VMA sections ... Why does crt0 have code that copies data from LMA to ...
    (comp.arch.embedded)
  • Re: [PATCH 1/2] Report the pagesize backing a VMA in /proc/pid/smaps
    ... this doesn't return the MMU pagesize backing the VMA. ... returns pagesize that hugetlb reports *or* the kernel's base PAGE_SIZE. ...
    (Linux-Kernel)