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:
parent
7eaeb4711e
commit
c7b34a7f72
2
kernel/Cargo.lock
generated
2
kernel/Cargo.lock
generated
@ -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)",
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user