Skip to content

Commit

Permalink
fix interrupts not disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
1vnt committed Jan 25, 2025
1 parent b57f82a commit ee8d211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/include/ivy/spin.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static inline void spinlock_release(Spinlock *spinlock, Ipl ipl)
[[nodiscard]]
static inline int spinlock_acquire_ints(Spinlock *spinlock)
{
int state = getints();
int state = setints(0);
spinlock_acquire_elevated(spinlock);
return state;
}
Expand Down

0 comments on commit ee8d211

Please sign in to comment.