Skip to content

Conversation

@iabdalkader
Copy link
Contributor

@iabdalkader iabdalkader commented Nov 3, 2025

ARMv8-M and newer ARC MPUs use base/limit addressing with 32-byte granularity and do not require power-of-two sizing. Only ARMv7-M and older ARC MPUs have this restriction.

Check CONFIG_MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT (set for ARMv7-M, older ARC) instead of CONFIG_ARM_MPU to avoid wasting memory on ARMv8-M systems.

This is something I noticed while looking at the llext code. If you don’t want to modify that critical code, feel free to close it.

ARMv8-M and newer ARC MPUs use base/limit addressing with 32-byte granularity and do not require power-of-two sizing. Only ARMv7-M and older ARC MPUs have this restriction. Check CONFIG_MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT (set for ARMv7-M, older ARC) instead of CONFIG_ARM_MPU to avoid wasting memory on ARMv8-M systems. Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
@zephyrbot zephyrbot added the area: llext Linkable Loadable Extensions label Nov 3, 2025
@zephyrbot zephyrbot requested review from lyakh, pillo79 and teburd November 3, 2025 21:59
Copy link
Contributor

@pillo79 pillo79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, really didn't know such a flag existed. Huge improvement over the current situation 🥳

LGTM, but I have no ARC experience. @laurenmurphyx64, any feedback? Thanks!

@jhedberg jhedberg added this to the v4.3.0 milestone Nov 6, 2025
@jhedberg
Copy link
Member

jhedberg commented Nov 6, 2025

Please add a reference to a bug report, so that this can be accepted to 4.3. I've also updated the milestone (if I'm wrong and this should wait for 4.4, please update the milestone accordingly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: llext Linkable Loadable Extensions

6 participants