-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
arch: arm: Make PLATFORM_SPECIFIC_INIT available to all ARM variants. #20468
Conversation
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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
Is there a public declaration for z_platform_init? |
I think that's just used inside reset.S |
@ioannisg 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 :) |
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.