-
Notifications
You must be signed in to change notification settings - Fork 24
arc: Set tp regno to 26 for Zephyr #17
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
base: zephyr-gcc-12.1.0
Are you sure you want to change the base?
Conversation
@abrodkin @evgeniy-paltsev @claziss does this sound ok? |
@stephanosio From compiler point of view, you can choose any callee saved register (i.e. |
Zephyr needs a consistent thread pointer register which is respected by all code, not just the OS. Use register 26 to be compatible with existing Zephyr source. Signed-off-by: Keith Packard <[email protected]>
@stephanosio suggests using register 26 so that existing the Zephyr source will 'just work' as it includes -mtp-regno=26 in the build scripts. |
fe79046
to
0efce03
Compare
For more context, see zephyrproject-rtos/zephyr#51910 (comment) |
@evgeniy-paltsev Since the transition from r26 to r25 will be implemented later, can you please approve this for now so that we can have TLS working with the toolchain libraries? |
Zephyr needs a consistent thread pointer register which is respected by all code, not just the OS.
Signed-off-by: Keith Packard [email protected]