Skip to content

Commit

Permalink
Seems to fix networking issue with rumprt
Browse files Browse the repository at this point in the history
  • Loading branch information
hunhoffe committed Nov 13, 2023
1 parent 561c868 commit 206e95e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/vibrio/src/rumprt/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub unsafe extern "C" fn rumpcomp_pci_irq_map(
Some(irq_handler),
core::ptr::null_mut(),
cur_thread.current_core,
vector as u64 + 31,
vector as u64 + 32,
)
.expect("Can't create IRQ thread?");

Expand Down Expand Up @@ -179,7 +179,7 @@ pub unsafe extern "C" fn rumpcomp_pci_irq_establish(
trace!("rumpcomp_pci_irq_establish {:#x} {:p}", cookie, arg);
IRQS[0].handler = handler;
IRQS[0].arg = arg;
trace!("register for IRQ {}", IRQS[0].vector as usize + 31);
trace!("register for IRQ {}", IRQS[0].vector as usize + 32);

&mut IRQS[0] as *mut _ as *mut c_void
}
Expand Down
2 changes: 1 addition & 1 deletion lib/vibrio/src/upcalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn upcall_while_enabled(control: &mut kpi::arch::VirtualCpu, cmd: u64, arg:
}
}

if cmd == 0x2a || cmd == 0x24 {
if cmd == 0x2b || cmd == 0x24 {
// TODO(correctness): this will use `gs` to access the SchedulerControlBlock
// that assumes that we have already called scheduler.run() and we preserve
// the SchedulerControlBlock register even if we return from run()
Expand Down

0 comments on commit 206e95e

Please sign in to comment.