Introduce a syscall restart mechanism

This commit is contained in:
Zejun Zhao
2024-12-16 08:34:32 +08:00
committed by Tate, Hongliang Tian
parent b70c4784ed
commit ced0023d6b
9 changed files with 45 additions and 15 deletions

View File

@ -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);
}