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: Inline arch_isr_direct_header. #20446

Merged

Conversation

stephanosio
Copy link
Member

This commit inlines arch_isr_direct_header function that was previously
placed in irq_manage.c for no good reason (possibly in relation to the
FIXME for #3056).

In addition, since the PR #20119 resolved the header circular
dependency issue described in the issue #3056, this commit removes the
references to it in the code.

The reason for not inlining _arch_is_direct_pm as the #3056 FIXME
suggests is that there is little to gain from doing so and there still
exists circular dependency for the headers required by this function
(#20119 only addresses kernel_structs.h, which is required for _current
and _kernel, which, in turn, is required for handling interrupt nesting
in many architectures; in fact, Cortex-A and Cortex-R port will require
it as well).

Signed-off-by: Stephanos Ioannidis [email protected]

This commit inlines arch_isr_direct_header function that was previously
placed in irq_manage.c for no good reason (possibly in relation to the
FIXME for zephyrproject-rtos#3056).

In addition, since the PR zephyrproject-rtos#20119 resolved the header circular
dependency issue described in the issue zephyrproject-rtos#3056, this commit removes the
references to it in the code.

The reason for not inlining _arch_is_direct_pm as the zephyrproject-rtos#3056 FIXME
suggests is that there is little to gain from doing so and there still
exists circular dependency for the headers required by this function
(zephyrproject-rtos#20119 only addresses kernel_structs.h, which is required for _current
and _kernel, which, in turn, is required for handling interrupt nesting
in many architectures; in fact, Cortex-A and Cortex-R port will require
it as well).

Signed-off-by: Stephanos Ioannidis <[email protected]>
@zephyrbot zephyrbot added area: ARM ARM (32-bit) Architecture area: API Changes to public APIs labels Nov 8, 2019
Copy link
Member

@ioannisg ioannisg left a comment

Choose a reason for hiding this comment

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

nice

@ioannisg ioannisg added this to the v2.1.0 milestone Nov 8, 2019
@ioannisg ioannisg added the Enhancement Changes/Updates/Additions to existing features label Nov 8, 2019
@ioannisg ioannisg merged commit 5ba0c8e into zephyrproject-rtos:master Nov 8, 2019
@stephanosio stephanosio deleted the resolve_gh_3056_arm branch November 8, 2019 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: API Changes to public APIs 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.

4 participants