Skip to content

target/arc: Make LF be cleared on usermode interrupt #48 #214

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kolerov
Copy link
Contributor

@kolerov kolerov commented Jul 2, 2024

Since an interrupt requires LF to be cleared and there is no hook for usermode interrupts, we save/validate current thread id to detect preemption and clear LF. This only needs to be done where it is relevant for LF (llock/scond variant helpers).

P.S. This is a patch for an old issue. We can safely push it.

Since an interrupt requires LF to be cleared and there is no hook for
usermode interrupts, we save/validate current thread id to detect
preemption and clear LF. This only needs to be done where it is
relevant for LF (llock/scond variant helpers).

Signed-off-by: BrunoASMauricio <[email protected]>
@kolerov kolerov requested a review from shahab-vahedi July 2, 2024 14:05
@kolerov kolerov self-assigned this Jul 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants