Skip to content

arch: arm: aarch32: When CPU_HAS_FPU for Cortex-R5 is selected, prep_c.c uses undefined symbols #24911

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

Closed
Sanji1981 opened this issue May 3, 2020 · 3 comments

Comments

@Sanji1981
Copy link

Sanji1981 commented May 3, 2020

Describe the bug
When compiling for a Cortex-R5-based SoC which selects CPU_HAS_FPU option, the z_arm_floating_point_init() function defined in /arch/arm/aarch32/prep_c.c makes use of the SCB (defined in a CMSIS header for Cortex-M3) which is undefined when CPU_CORTEX_R is selected.

Expected behavior
Builds fails with:

2: error: ‘SCB’ undeclared (first use in this function)
  SCB->CPACR &= (~(CPACR_CP10_Msk | CPACR_CP11_Msk));

Impact
Advance in the development of current project.

Environment (please complete the following information):

  • OS: Linux (Ubuntu 18.04)
  • Toolchain (Linaro GCC 7.13)
  • Tag zephyr-2.2.0, top commit
@Sanji1981 Sanji1981 added the bug The issue is a bug, or the PR is fixing a bug label May 3, 2020
@stephanosio
Copy link
Member

Enabling FPU (CONFIG_FPU=y) is not supported at the moment. This is WIP. See #20594 and #19979.

@stephanosio stephanosio added question and removed bug The issue is a bug, or the PR is fixing a bug labels May 3, 2020
@stephanosio
Copy link
Member

Impact
Advance in the development of current project.

I will probably upstream the Cortex-R FPU support next week.

@Sanji1981
Copy link
Author

@stephanosio Thank you very much for the prompt reply and please forgive me for the bothering question. That will be very helpful, I'd like to thank you in advance as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants