Skip to content

Commit

Permalink
llext: disable for Harvard ARC variants
Browse files Browse the repository at this point in the history
Some ARC processor configurations have separate memory for code (ICCM)
and for data (DCCM). Such configurations are unsuitable for LLEXT,
except for some quite special cases. For now, disable LLEXT and its
tests for these devices completely.

Signed-off-by: Ilya Tagunov <[email protected]>
  • Loading branch information
tagunil committed Dec 3, 2024
1 parent 28bd478 commit 75ba160
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/services/llext/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ and introspected to some degree, as well as unloaded when no longer needed.

The LLEXT subsystem requires architecture-specific support. It is currently
available only on RISC-V, ARM, ARM64, ARC (experimental) and Xtensa cores.
Harvard architecture cores that separate code and data paths and have no
common memory are not supported.
1 change: 1 addition & 0 deletions subsys/llext/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ menuconfig LLEXT
bool "Linkable loadable extensions"
select CACHE_MANAGEMENT if DCACHE
select KERNEL_WHOLE_ARCHIVE
depends on !HARVARD
help
Enable the linkable loadable extension subsystem

Expand Down
1 change: 1 addition & 0 deletions tests/subsys/llext/simple/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ common:
- qemu_cortex_r5 # ARM Cortex-R5 (ARMv7-R ISA)
- mps2/an385 # ARM Cortex-M3 (ARMv7-M ISA)
- mps2/an521/cpu0 # ARM Cortex-M33 (ARMv8-M ISA)
filter: not CONFIG_HARVARD
extra_configs:
- arch:arm64:CONFIG_LLEXT_HEAP_SIZE=128
extra_conf_files:
Expand Down

0 comments on commit 75ba160

Please sign in to comment.