Commit 4b498121 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

enable network support if pci support is available

parent efc3f0a3
......@@ -8,7 +8,7 @@
#![allow(clippy::result_unit_err)]
#[cfg(all(not(feature = "newlib"), target_arch = "x86_64"))]
#[cfg(all(not(feature = "newlib"), feature = "pci", target_arch = "x86_64"))]
use crate::drivers::net::*;
use crate::environment;
#[cfg(feature = "newlib")]
......@@ -152,13 +152,13 @@ pub fn sys_rx_buffer_consumed(handle: usize) -> Result<(), ()> {
kernel_function!(__sys_rx_buffer_consumed(handle))
}
#[cfg(all(not(feature = "newlib"), target_arch = "x86_64"))]
#[cfg(all(not(feature = "newlib"), feature = "pci", target_arch = "x86_64"))]
#[no_mangle]
pub extern "C" fn sys_netwait() {
kernel_function!(netwait());
}
#[cfg(all(not(feature = "newlib"), target_arch = "x86_64"))]
#[cfg(all(not(feature = "newlib"), feature = "pci", target_arch = "x86_64"))]
#[no_mangle]
pub extern "C" fn sys_set_network_polling_mode(value: bool) {
kernel_function!(set_polling_mode(value));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment