:orphan: .. title:: KERNEL_VM_OFFSET .. option:: 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 =================== \ :option:`MMU ` *(Includes any dependencies from ifs and menus.)* Default ======= - 0 Kconfig definition ================== .. highlight:: kconfig At ``arch/Kconfig:599`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:29`` Menu path: (Top) → Enable MMU features .. parsed-literal:: config KERNEL_VM_OFFSET hex "Kernel offset within address space" default 0 depends on \ :option:`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.)*