Fix missing change in last commit

master
Jiajie Chen 6 years ago
parent 0d2bc0a7d4
commit 92d40fae61

@ -126,7 +126,7 @@ const VIRTIO_QUEUE_STATUS: usize = 1;
pub struct VirtIOInputDriver(Mutex<VirtIOInput>); pub struct VirtIOInputDriver(Mutex<VirtIOInput>);
impl VirtIOInput { impl VirtIOInput {
fn try_handle_interrupt(&mut self) -> bool { fn try_handle_interrupt(&mut self, _irq: Option<u32>) -> bool {
// for simplicity // for simplicity
if cpu::id() > 0 { if cpu::id() > 0 {
return false return false
@ -165,8 +165,8 @@ impl VirtIOInput {
} }
impl Driver for VirtIOInputDriver { impl Driver for VirtIOInputDriver {
fn try_handle_interrupt(&self) -> bool { fn try_handle_interrupt(&self, irq: Option<u32>) -> bool {
self.0.lock().try_handle_interrupt() self.0.lock().try_handle_interrupt(irq)
} }
fn device_type(&self) -> DeviceType { fn device_type(&self) -> DeviceType {

Loading…
Cancel
Save