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

Enable SOC-based offsets

Type: bool

Help

Enabling this option requires that the SoC provide a soc_offsets.h header which defines the following macros:

  • GEN_SOC_OFFSET_SYMS(): a macro which expands to GEN_OFFSET_SYM(soc_esf_t, soc_specific_member) calls to ensure offset macros for SOC_ESF_MEMBERS are defined in offsets.h. The last one should not end in a semicolon. See gen_offset.h for more details.

Direct dependencies

SOC_OPENISA_RV32M1_RISCV32 || RISCV

(Includes any dependencies from ifs and menus.)

Default

  • y

Symbols that select this symbol

Kconfig definitions

At soc/riscv/openisa_rv32m1/Kconfig.defconfig:30

Included via Kconfig:8Kconfig.zephyr:19doc/_build/Kconfig/Kconfig.soc.defconfig:1

Menu path: (Top)

config RISCV_SOC_OFFSETS
    bool
    default y
    depends on SOC_OPENISA_RV32M1_RISCV32

At arch/riscv/Kconfig:75

Included via Kconfig:8Kconfig.zephyr:29arch/Kconfig:12

Menu path: (Top) → RISCV Options → RISCV Processor Options

config RISCV_SOC_OFFSETS
    bool "Enable SOC-based offsets"
    depends on RISCV
    help
      Enabling this option requires that the SoC provide a soc_offsets.h
      header which defines the following macros:

      - GEN_SOC_OFFSET_SYMS(): a macro which expands to
        GEN_OFFSET_SYM(soc_esf_t, soc_specific_member) calls
        to ensure offset macros for SOC_ESF_MEMBERS are defined
        in offsets.h. The last one should not end in a semicolon.
        See gen_offset.h for more details.

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