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

GetPriorityTriggerType missing IntrId to IntrNum transform #306

Open
digitalnumeric opened this issue Aug 30, 2024 · 1 comment
Open

GetPriorityTriggerType missing IntrId to IntrNum transform #306

digitalnumeric opened this issue Aug 30, 2024 · 1 comment

Comments

@digitalnumeric
Copy link

digitalnumeric commented Aug 30, 2024

In xinterrupt_wrap.c, the function XSetPriorityTriggerType() includes code to transform the IntrId passed in as an argument to a IntrNum which it then passes to the XScuGic_SetPriorityTriggerType() function.

The function XGetPriorityTriggerType() is missing this transform. It takes the IntrId passed in as an argument and passes it directly to XScuGic_GetPriorityTriggerType() which results in hitting an assertion.

This can be corrected by adding the transformation from IntrId to IntrNum into XGetPriorityTriggerType() as done in the attached patch file:
0001-updated-XGetPriorityTriggerType-with-IntrId-to-IntrN.patch

Reference to where this was reported on the forums earlier this year:
Vitis Unified IDE Bug in xinterrupt_wrap.h|.c XGetPriorityTriggerType() hanging at assertion on IntrId

@anirudha1977
Copy link
Contributor

Hi,
Thanks.
We will take a look at it and fix it as needed.
Will use the patch.

regards

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