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:33

Included via Kconfig:8Kconfig.zephyr:28

Menu path: (Top)

config RISCV_SOC_OFFSETS
    bool
    default y
    depends on SOC_OPENISA_RV32M1_RISCV32

At arch/riscv/Kconfig:55

Included via Kconfig:8Kconfig.zephyr:34arch/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.)