mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-23 00:16:17 +04:00
Fix missing change in last commit
This commit is contained in:
parent
0d2bc0a7d4
commit
92d40fae61
@ -126,7 +126,7 @@ const VIRTIO_QUEUE_STATUS: usize = 1;
|
||||
pub struct VirtIOInputDriver(Mutex<VirtIOInput>);
|
||||
|
||||
impl VirtIOInput {
|
||||
fn try_handle_interrupt(&mut self) -> bool {
|
||||
fn try_handle_interrupt(&mut self, _irq: Option<u32>) -> bool {
|
||||
// for simplicity
|
||||
if cpu::id() > 0 {
|
||||
return false
|
||||
@ -165,8 +165,8 @@ impl VirtIOInput {
|
||||
}
|
||||
|
||||
impl Driver for VirtIOInputDriver {
|
||||
fn try_handle_interrupt(&self) -> bool {
|
||||
self.0.lock().try_handle_interrupt()
|
||||
fn try_handle_interrupt(&self, irq: Option<u32>) -> bool {
|
||||
self.0.lock().try_handle_interrupt(irq)
|
||||
}
|
||||
|
||||
fn device_type(&self) -> DeviceType {
|
||||
|
Loading…
Reference in New Issue
Block a user