Remove PhysBorrowed hacks.

This commit is contained in:
4lDO2
2023-12-09 12:15:26 +01:00
parent 52df9dd1bc
commit ee3aafa1d9
4 changed files with 88 additions and 61 deletions
+2
View File
@@ -38,6 +38,8 @@ pub fn exit(status: usize) -> ! {
let mut context = context_lock.write();
close_files = Arc::try_unwrap(mem::take(&mut context.files)).map_or_else(|_| Vec::new(), RwLock::into_inner);
addrspace_opt = mem::take(&mut context.addr_space).and_then(|a| Arc::try_unwrap(a).ok());
drop(context.syscall_head.take());
drop(context.syscall_tail.take());
context.id
};