0.3.2 - Improve aarch64 registers

This commit is contained in:
Jeremy Soller
2022-08-24 08:46:51 -06:00
parent a5d2639716
commit 7eb24a17ce
2 changed files with 4 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "redox_syscall" name = "redox_syscall"
version = "0.3.1" version = "0.3.2"
description = "A Rust library to access raw Redox system calls" description = "A Rust library to access raw Redox system calls"
license = "MIT" license = "MIT"
authors = ["Jeremy Soller <jackpot51@gmail.com>"] authors = ["Jeremy Soller <jackpot51@gmail.com>"]

View File

@@ -51,13 +51,6 @@ syscall! {
#[derive(Copy, Clone, Debug, Default)] #[derive(Copy, Clone, Debug, Default)]
#[repr(C)] #[repr(C)]
pub struct IntRegisters { 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 x30: usize,
pub x29: usize, pub x29: usize,
pub x28: usize, pub x28: usize,
@@ -136,7 +129,8 @@ impl DerefMut for FloatRegisters {
#[derive(Clone, Copy, Debug, Default)] #[derive(Clone, Copy, Debug, Default)]
#[repr(packed)] #[repr(packed)]
pub struct EnvRegisters { pub struct EnvRegisters {
// TODO: do we need any of these? pub tpidr_el0: usize,
pub tpidrro_el0: usize,
} }
impl Deref for EnvRegisters { impl Deref for EnvRegisters {
type Target = [u8]; 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::<EnvRegisters>()) slice::from_raw_parts_mut(self as *mut EnvRegisters as *mut u8, mem::size_of::<EnvRegisters>())
} }
} }
} }