Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
HermitCore
libhermit-rs
Commits
4b498121
Commit
4b498121
authored
Aug 17, 2021
by
Stefan Lankes
Browse files
enable network support if pci support is available
parent
efc3f0a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/syscalls/mod.rs
View file @
4b498121
...
...
@@ -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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment