Skip to content

Commit

Permalink
hal/zynq7000, hal/imx6ull: Fix accesses to GIC EOIR register
Browse files Browse the repository at this point in the history
Fixes code trying to read from a write-only register.

JIRA: RTOS-690
  • Loading branch information
jmaksymowicz authored and agkaminski committed Nov 27, 2023
1 parent 1545a3a commit 19c4633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hal/armv7a/imx6ull/interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void interrupts_dispatch(void)
interrupts_common.handlers[n].f(n, interrupts_common.handlers[n].data);

/* Update End of Interrupt register with original value from iar */
*(interrupts_common.gic + gicv_eoir) = (*(interrupts_common.gic + gicv_eoir) & 0x03ff) | iar;
*(interrupts_common.gic + gicv_eoir) = iar;

return;
}
Expand Down
2 changes: 1 addition & 1 deletion hal/armv7a/zynq7000/interrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void interrupts_dispatch(void)
if (interrupts_common.handlers[n].f != NULL)
interrupts_common.handlers[n].f(n, interrupts_common.handlers[n].data);

*(interrupts_common.mpcore + ceoir) = (*(interrupts_common.mpcore + ceoir) & ~0x3ff) | n;
*(interrupts_common.mpcore + ceoir) = n;

return;
}
Expand Down

0 comments on commit 19c4633

Please sign in to comment.