Use sysretq in usermode().

This commit is contained in:
4lDO2
2021-02-08 08:44:48 +01:00
parent a8dc3fcaf1
commit c913c3be80
3 changed files with 61 additions and 38 deletions
+1 -1
View File
@@ -845,7 +845,7 @@ fn fexec_noreturn(
}
// Go to usermode
unsafe { usermode(entry, sp, 0, singlestep) }
unsafe { usermode(entry, sp, 0, u32::from(singlestep)) }
}
pub fn fexec_kernel(fd: FileHandle, args: Box<[Box<[u8]>]>, vars: Box<[Box<[u8]>]>, name_override_opt: Option<Box<str>>, auxv: Option<Vec<usize>>) -> Result<usize> {