Skip to content

Commit

Permalink
#12: Read the PTABLE, but each process needs to be written to in orde…
Browse files Browse the repository at this point in the history
…r to be run
  • Loading branch information
kennystrawnmusic committed Sep 23, 2023
1 parent e0c273b commit 6fe3a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/x86_64/interrupts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ extern "x86-interrupt" fn wake_ipi(frame: InterruptStackFrame) {
// use index of an atomic to ensure that only one process is being woken at a time
// TODO: handle error cases
(PTABLE.read())[PTABLE_IDX.load(Ordering::SeqCst)]
.read()
.write()
.run()
.unwrap();

Expand Down

0 comments on commit 6fe3a4e

Please sign in to comment.