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: Make PLATFORM_SPECIFIC_INIT available to all ARM variants. #20468

Conversation

stephanosio
Copy link
Member

Move PLATFORM_SPECIFIC_INIT declaration from Cortex-M Kconfig to the
ARM arch Kconfig in order to make it available for all ARM variants.

The rationale is that there is really no good reason why
platform-specific initialisation should be a Cortex-M-specific feature
and that Cortex-R port is expected to utilise this in a near future.

Signed-off-by: Stephanos Ioannidis root@stephanos.io

NOTE: Separated out from #19698 for timely review and merging.

Move PLATFORM_SPECIFIC_INIT declaration from Cortex-M Kconfig to the
ARM arch Kconfig in order to make it available for all ARM variants.

The rationale is that there is really no good reason why
platform-specific initialisation should be a Cortex-M-specific feature
and that Cortex-R port is expected to utilise this in a near future.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Copy link
Member

@carlescufi carlescufi left a comment

Choose a reason for hiding this comment

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

LGTM

@zephyrbot zephyrbot added the area: ARM ARM (32-bit) Architecture label Nov 8, 2019
@ioannisg ioannisg added the Enhancement Changes/Updates/Additions to existing features label Nov 8, 2019
Copy link
Collaborator

@galak galak left a comment

Choose a reason for hiding this comment

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

No issue, but if we move this we need a version of z_platform_init on Cortex-R

@ioannisg
Copy link
Member

ioannisg commented Nov 8, 2019

No issue, but if we move this we need a version of z_platform_init on Cortex-R

Is there a public declaration for z_platform_init?

@ioannisg
Copy link
Member

ioannisg commented Nov 8, 2019

No issue, but if we move this we need a version of z_platform_init on Cortex-R

Is there a public declaration for z_platform_init?

I think that's just used inside reset.S

@stephanosio
Copy link
Member Author

No issue, but if we move this we need a version of z_platform_init on Cortex-R

@galak See PR #20473.

@stephanosio
Copy link
Member Author

stephanosio commented Nov 8, 2019

Is there a public declaration for z_platform_init?

@ioannisg Not at this time. It is more like an implicit contract between arch reset.S and soc when PLATFORM_SPECIFIC_INIT is enabled.

@ioannisg
Copy link
Member

ioannisg commented Nov 8, 2019

Is there a public declaration for z_platform_init?

Not at this time. It is more like an implicit contract between arch reset.S and soc when PLATFORM_SPECIFIC_INIT is enabled.

Yes, and I am happy for it being like this :)

@ioannisg ioannisg merged commit 92625d7 into zephyrproject-rtos:master Nov 8, 2019
@stephanosio stephanosio deleted the arm_platform_specific_init_for_all branch November 8, 2019 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARM ARM (32-bit) Architecture Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants