futex and slight changes

This commit is contained in:
17liamnaddell
2018-07-21 21:41:47 -04:00
parent c06f403dd2
commit 2c2a96a935
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ pub mod time;
/// Validate input
pub mod validate;
/// This function is composed of an inner function that returns a `Result<usize>`, then the syscall
/// function calls [`Error::mux`] on it
/// This function is the syscall handler of the kernel, it is composed of an inner function that returns a `Result<usize>`. After the inner function runs, the syscall
/// function calls [`Error::mux`] on it.
pub fn syscall(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize, bp: usize, stack: &mut SyscallStack) -> usize {
#[inline(always)]
fn inner(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize, bp: usize, stack: &mut SyscallStack) -> Result<usize> {