CONFIG_X86_KERNEL_OFFSET

Kernel offset from beginning of RAM

Type: int

Help

A lot of x86 that resemble PCs have many reserved physical memory regions within the first megabyte. Specify an offset from the beginning of RAM to load the kernel in physical memory, avoiding these regions.

Note that this does not include the “locore” which contains real mode bootstrap code within the first 64K of physical memory.

This value normally need to be page-aligned.

Direct dependencies

X86

(Includes any dependencies from ifs and menus.)

Default

  • 1048576

Kconfig definition

At <Zephyr>/arch/x86/Kconfig:51

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:29<Zephyr>/arch/Kconfig:12

Menu path: (Top) → X86 Architecture Options

config X86_KERNEL_OFFSET
    int "Kernel offset from beginning of RAM"
    default 1048576
    depends on X86
    help
      A lot of x86 that resemble PCs have many reserved physical memory
      regions within the first megabyte. Specify an offset from the
      beginning of RAM to load the kernel in physical memory, avoiding these
      regions.

      Note that this does not include the "locore" which contains real mode
      bootstrap code within the first 64K of physical memory.

      This value normally need to be page-aligned.

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