mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 20:03:22 +00:00
Rename get_current_userspace
to current_userspace
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
96de617ad9
commit
39d303c72f
@ -8,7 +8,7 @@ use ostd::{
|
||||
use super::{oops, Thread};
|
||||
use crate::{
|
||||
cpu::LinuxAbi,
|
||||
get_current_userspace,
|
||||
current_userspace,
|
||||
prelude::*,
|
||||
process::{posix_thread::AsPosixThread, signal::handle_pending_signal},
|
||||
syscall::handle_syscall,
|
||||
@ -47,7 +47,7 @@ pub fn create_new_user_task(user_space: Arc<UserSpace>, thread_ref: Arc<Thread>)
|
||||
// Make sure the store operation completes before the clone call returns control to user space
|
||||
// in the child process.
|
||||
if is_userspace_vaddr(child_tid_ptr) {
|
||||
get_current_userspace!()
|
||||
current_userspace!()
|
||||
.write_val(child_tid_ptr, ¤t_posix_thread.tid())
|
||||
.unwrap();
|
||||
}
|
||||
|
Reference in New Issue
Block a user