Disable threaded syscalls until threaded allocation issues are solved
This commit is contained in:
@@ -253,8 +253,17 @@ pub fn syscall(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize, bp: u
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "no_threaded_syscalls")]
|
||||
let syscall_lock = {
|
||||
static SYSCALL_LOCK: spin::Mutex<()> = spin::Mutex::new(());
|
||||
SYSCALL_LOCK.lock();
|
||||
};
|
||||
|
||||
let result = inner(a, b, c, d, e, f, bp, stack);
|
||||
|
||||
#[cfg(feature = "no_threaded_syscalls")]
|
||||
drop(syscall_lock);
|
||||
|
||||
{
|
||||
let contexts = crate::context::contexts();
|
||||
if let Some(context_lock) = contexts.current() {
|
||||
|
||||
Reference in New Issue
Block a user