feature: verbose feature for libusr

This commit is contained in:
2021-12-05 23:45:24 +02:00
parent afa7e4cecb
commit b4b99915ef
6 changed files with 14 additions and 6 deletions
-3
View File
@@ -217,7 +217,6 @@ impl Process {
let space_phys = lock.space.as_mut().unwrap().address_phys();
let ttbr0 = space_phys | ((lock.id.asid() as usize) << 48);
debugln!("New user thread for {:?}, asid={:#x}", lock.id, lock.id.asid());
let thread = Thread::new_user(lock.id, entry, stack, arg, ttbr0)?;
let tid = thread.id();
@@ -237,7 +236,6 @@ impl Process {
let dst_space = src_inner.space.as_mut().unwrap().fork()?;
let dst_space_phys = (dst_space as *mut _ as usize) - mem::KERNEL_OFFSET;
let dst_ttbr0 = dst_space_phys | ((dst_id.asid() as usize) << 48);
debugln!("New TTBR0 for {:?}, asid={:#x}", dst_id, dst_id.asid());
let mut threads = Vec::new();
let tid = Thread::fork(Some(dst_id), frame, dst_ttbr0)?.id();
@@ -534,7 +532,6 @@ impl Process {
let entry = loader(new_space)?;
let arg = Self::store_arguments(new_space, argv)?;
debugln!("Will now enter at {:#x}", entry);
// TODO drop old address space
process_lock.space = Some(new_space);