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
@@ -122,7 +122,7 @@ pub extern "C" fn signal_handler(sig: usize) {
sp -= mem::size_of::<usize>();
*(sp as *mut usize) = restorer;
usermode(handler, sp, sig, singlestep);
usermode(handler, sp, sig, u32::from(singlestep));
}
}