Skip to content

Commit

Permalink
kernel: fix incorrect core ID in tab write guard lock routine
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Jan 21, 2025
1 parent 8ec6933 commit 58f175a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oro-kernel/src/tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ impl Slot {
.lock
.compare_exchange_weak(
loaded,
(1 << 63) | (u64::from(kernel_id) << 31) | (lock_count + 1),
(1 << 63) | (u64::from(our_core) << 31) | (lock_count + 1),
Release,
Relaxed,
)
Expand Down

0 comments on commit 58f175a

Please sign in to comment.