The latest development version of this page may be more current than this released 2.5.0 version.
CONFIG_KERNEL_VM_OFFSET

Kernel offset within address space

Type: hex

Help

Offset that the kernel image begins within its address space, if this is not the same offset from the beginning of RAM.

Some care may need to be taken in selecting this value. In certain build-time cases, or when a physical address cannot be looked up in page tables, the equation:

virt = phys + ((KERNEL_VM_BASE + KERNEL_VM_OFFSET) -

SRAM_BASE_ADDRESS)

Will be used to convert between physical and virtual addresses for memory that is mapped at boot.

This uncommon and is only necessary if the beginning of VM and physical memory have dissimilar alignment.

Direct dependencies

MMU

(Includes any dependencies from ifs and menus.)

Default

  • 0

Kconfig definition

At arch/Kconfig:599

Included via Kconfig:8Kconfig.zephyr:29

Menu path: (Top) → Enable MMU features

config KERNEL_VM_OFFSET
    hex "Kernel offset within address space"
    default 0
    depends on MMU
    help
      Offset that the kernel image begins within its address space,
      if this is not the same offset from the beginning of RAM.

      Some care may need to be taken in selecting this value. In certain
      build-time cases, or when a physical address cannot be looked up
      in page tables, the equation:

          virt = phys + ((KERNEL_VM_BASE + KERNEL_VM_OFFSET) -
                         SRAM_BASE_ADDRESS)

      Will be used to convert between physical and virtual addresses for
      memory that is mapped at boot.

      This uncommon and is only necessary if the beginning of VM and
      physical memory have dissimilar alignment.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)