This PR adds proper handling of masked interrupts for Cortex-M cores.
Interrupts that are masked, can't be executed at a given time, but it doesn't mean that they are entirely cancelled.
They should be postponed until they are unmasked.
Checklist
Which kind of PR do you create?
[x] This PR only contains minor fixes.
[ ] This PR contains major feature update.
[ ] This PR introduces a new function/api for Qiling Framework.
Coding convention?
[x] The new code conforms to Qiling Framework naming convention.
[x] The imports are arranged properly.
[x] Essential comments are added.
[x] The reference of the new code is pointed out.
Extra tests?
[x] No extra tests are needed for this PR.
[ ] I have added enough tests for this PR.
[ ] Tests will be added after some discussion and review.
Changelog?
[ ] This PR doesn't need to update Changelog.
[x] Changelog will be updated after some proper review.
This PR adds proper handling of masked interrupts for Cortex-M cores. Interrupts that are masked, can't be executed at a given time, but it doesn't mean that they are entirely cancelled. They should be postponed until they are unmasked.
Checklist
Which kind of PR do you create?
Coding convention?
Extra tests?
Changelog?
Target branch?
One last thing