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

[Backport v3.5-branch] build: scripts: gen_isr_table: fix bug in level 3 bitmask shifting and minor enhancements #66634

Merged
merged 3 commits into from
Dec 27, 2023

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Dec 18, 2023

Backport 0884a33~3..0884a33 from #66203.

Fixes #66204

The calculation of `THIRD_LVL_INTERRUPTS` bitmask in the
`update_masks()` function is wrong, the number of bits to shift
should be the sum of the first two levels.

Signed-off-by: Yong Cong Sin <[email protected]>
(cherry picked from commit 56570cc)
Rename the bitmask variables from `*_LVL_INTERRUPTS` to
`INTERRUPT_LVL_BITMASK[]` array to be consistent with
`INTERRUPT_BITS`, making it easier to loop over the bitmasks.

Signed-off-by: Yong Cong Sin <[email protected]>
(cherry picked from commit b4db285)
Add some debug prints for the interrupts bits and bitmasks
in each level.

Signed-off-by: Yong Cong Sin <[email protected]>
(cherry picked from commit 0884a33)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: Build System labels Dec 18, 2023
@ycsin ycsin linked an issue Dec 19, 2023 that may be closed by this pull request
@fabiobaltieri fabiobaltieri merged commit 5b99923 into v3.5-branch Dec 27, 2023
23 checks passed
@nashif nashif deleted the backport-66203-to-v3.5-branch branch February 13, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build System Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

build: scripts: gen_isr_table: l3 bitmask shifting is wrong
5 participants