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

@ -7,6 +7,9 @@ pub trait LinuxAbi {
/// Get return value of syscall
fn syscall_ret(&self) -> usize;
/// Set number of syscall
fn set_syscall_num(&mut self, num: usize);
/// Set return value of syscall
fn set_syscall_ret(&mut self, ret: usize);