Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Condvar: Mark sys functions as extern "C" #422

Merged
merged 1 commit into from
Apr 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/syscalls/condvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern "C" fn __sys_destroy_queue(ptr: usize) -> i32 {
}

#[no_mangle]
pub unsafe fn sys_destroy_queue(ptr: usize) -> i32 {
pub unsafe extern "C" fn sys_destroy_queue(ptr: usize) -> i32 {
kernel_function!(__sys_destroy_queue(ptr))
}

Expand Down Expand Up @@ -82,7 +82,7 @@ extern "C" fn __sys_notify(ptr: usize, count: i32) -> i32 {
}

#[no_mangle]
pub unsafe fn sys_notify(ptr: usize, count: i32) -> i32 {
pub unsafe extern "C" fn sys_notify(ptr: usize, count: i32) -> i32 {
kernel_function!(__sys_notify(ptr, count))
}

Expand All @@ -105,7 +105,7 @@ extern "C" fn __sys_init_queue(ptr: usize) -> i32 {
}

#[no_mangle]
pub unsafe fn sys_init_queue(ptr: usize) -> i32 {
pub unsafe extern "C" fn sys_init_queue(ptr: usize) -> i32 {
kernel_function!(__sys_init_queue(ptr))
}

Expand Down Expand Up @@ -137,7 +137,7 @@ extern "C" fn __sys_add_queue(ptr: usize, timeout_ns: i64) -> i32 {
}

#[no_mangle]
pub unsafe fn sys_add_queue(ptr: usize, timeout_ns: i64) -> i32 {
pub unsafe extern "C" fn sys_add_queue(ptr: usize, timeout_ns: i64) -> i32 {
kernel_function!(__sys_add_queue(ptr, timeout_ns))
}

Expand All @@ -163,6 +163,6 @@ extern "C" fn __sys_wait(ptr: usize) -> i32 {
}

#[no_mangle]
pub unsafe fn sys_wait(ptr: usize) -> i32 {
pub unsafe extern "C" fn sys_wait(ptr: usize) -> i32 {
kernel_function!(__sys_wait(ptr))
}