mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 18:33:24 +00:00
Introduce a syscall restart mechanism
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b70c4784ed
commit
ced0023d6b
@ -22,6 +22,10 @@ impl LinuxAbi for UserContext {
|
||||
self.rax()
|
||||
}
|
||||
|
||||
fn set_syscall_num(&mut self, num: usize) {
|
||||
self.set_rax(num);
|
||||
}
|
||||
|
||||
fn set_syscall_ret(&mut self, ret: usize) {
|
||||
self.set_rax(ret);
|
||||
}
|
||||
|
Reference in New Issue
Block a user