1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-23 00:16:17 +04:00

Use enable_irq explicitly in ixgbe driver

This commit is contained in:
Jiajie Chen 2019-03-22 12:33:48 +08:00
parent 7eaeb4711e
commit c7b34a7f72
2 changed files with 3 additions and 1 deletions

2
kernel/Cargo.lock generated
View File

@ -196,7 +196,7 @@ dependencies = [
[[package]]
name = "isomorphic_drivers"
version = "0.1.0"
source = "git+https://github.com/rcore-os/isomorphic_drivers#642e139b4c4a06a75d9530e9d60a33c514aea060"
source = "git+https://github.com/rcore-os/isomorphic_drivers#a564ac855887a823dac80529ec4138194583905d"
dependencies = [
"bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)",
"spin 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -238,6 +238,8 @@ pub fn ixgbe_init(
}
}
let ixgbe = ixgbe::IXGBEDriver::init(Provider::new(), header, size);
ixgbe.enable_irq();
let ethernet_addr = EthernetAddress::from_bytes(&ixgbe.get_mac().as_bytes());
let net_driver = IXGBEDriver {