Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch/arm: guard .thumb_func use #15897

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

yf13
Copy link
Contributor

@yf13 yf13 commented Feb 24, 2025

Summary

This guards use of thumb_func with ARM_THUMB so that PROTECTED build can work in non-THUMB mode.

Impacts

arm 32 bit devices w/o ARM_THUMB can do signal handling in PROTECTED mode now.

Testing

  • local checks with qemu-armv7r:pnsh, qemu-armv7a:knsh with ARM_THUMB off, with apt-installed gcc-arm-none-eabi toolchain 10.3.1 on Ubuntu 22.04.

  • CI checks

@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small labels Feb 24, 2025
@yf13
Copy link
Contributor Author

yf13 commented Feb 25, 2025

So greehills compiler will use thumb unconditionally?

@pkarashchenko, thanks for the comments! I thought this is only for GNU as it is under gnu/ folder, but after seeing your notes and looking at CMakeLists.txt, now I see gnu/ folder is for multiple toolchains.

I guess we may need enlarge the guard for GHS toolchain as well, but I can't test it yet.

yf13 added 2 commits February 25, 2025 09:28
This guards use of .thumb_func with ARM_THUBM kconfig so that
CONFIG_ARM_THUMB can be off for cases like qemu-armv7r:pnsh

Signed-off-by: Yanfeng Liu <[email protected]>
This drops forcing ARM_THUMB for ARMV7R so that downstream chips
can use it optionally.

Signed-off-by: Yanfeng Liu <[email protected]>
@yf13
Copy link
Contributor Author

yf13 commented Feb 25, 2025

@xiaoxiang781216 thanks for info about GHS, it has been guarded in the latest update already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants