This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired 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:27

Menu path: (Top)

config RISCV_SOC_OFFSETS
    bool
    default y
    depends on SOC_OPENISA_RV32M1_RISCV32

At arch/riscv/Kconfig:87

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