From 7eb24a17cef4e8f4617d20925a86a31dd1b777ea Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 24 Aug 2022 08:46:51 -0600 Subject: [PATCH] 0.3.2 - Improve aarch64 registers --- Cargo.toml | 2 +- src/arch/aarch64.rs | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4b49b68..38ac5ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "redox_syscall" -version = "0.3.1" +version = "0.3.2" description = "A Rust library to access raw Redox system calls" license = "MIT" authors = ["Jeremy Soller "] diff --git a/src/arch/aarch64.rs b/src/arch/aarch64.rs index 1b2db5b..e792427 100644 --- a/src/arch/aarch64.rs +++ b/src/arch/aarch64.rs @@ -51,13 +51,6 @@ syscall! { #[derive(Copy, Clone, Debug, Default)] #[repr(C)] pub struct IntRegisters { - pub elr_el1: usize, - pub tpidr_el0: usize, - pub tpidrro_el0: usize, - pub spsr_el1: usize, - pub esr_el1: usize, - pub sp_el0: usize, // Shouldn't be used if interrupt occurred at EL1 - pub padding: usize, // To keep the struct even number aligned pub x30: usize, pub x29: usize, pub x28: usize, @@ -136,7 +129,8 @@ impl DerefMut for FloatRegisters { #[derive(Clone, Copy, Debug, Default)] #[repr(packed)] pub struct EnvRegisters { - // TODO: do we need any of these? + pub tpidr_el0: usize, + pub tpidrro_el0: usize, } impl Deref for EnvRegisters { type Target = [u8]; @@ -153,4 +147,4 @@ impl DerefMut for EnvRegisters { slice::from_raw_parts_mut(self as *mut EnvRegisters as *mut u8, mem::size_of::()) } } -} \ No newline at end of file +}