0.3.2 - Improve aarch64 registers
This commit is contained in:
@@ -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>"]
|
||||||
|
|||||||
@@ -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>())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user