mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 03:13:23 +00:00
Rename get_user_space
to user_space
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e6c613f538
commit
96de617ad9
@ -350,7 +350,7 @@ impl FutexKey {
|
||||
pub fn load_val(&self, ctx: &Context) -> Result<i32> {
|
||||
// FIXME: how to implement a atomic load?
|
||||
warn!("implement an atomic load");
|
||||
ctx.get_user_space().read_val(self.addr)
|
||||
ctx.user_space().read_val(self.addr)
|
||||
}
|
||||
|
||||
pub fn addr(&self) -> Vaddr {
|
||||
|
@ -159,7 +159,7 @@ pub fn handle_user_signal(
|
||||
// To avoid corrupting signal stack, we minus 128 first.
|
||||
stack_pointer -= 128;
|
||||
|
||||
let user_space = ctx.get_user_space();
|
||||
let user_space = ctx.user_space();
|
||||
|
||||
// 1. write siginfo_t
|
||||
stack_pointer -= mem::size_of::<siginfo_t>() as u64;
|
||||
|
Reference in New Issue
Block a user