trait ArchIndependentRegs {
// Required methods
fn ip(&self) -> usize;
fn set_ip(&mut self, ip: usize);
fn set_sp(&mut self, sp: usize);
}
Expand description
Allows us to get common arguments from the user_regs_t
across architectures.
Normally this would land us ABI hell, but thankfully all of our usecases
consist of functions with a small number of register-sized integer arguments.
See https://man7.org/linux/man-pages/man2/syscall.2.html for sources.