mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
regenerate svd files for other targets
This commit is contained in:
parent
2e2d4d423c
commit
529cdcc67d
2 changed files with 8 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ impl Field {
|
||||||
}
|
}
|
||||||
pub const fn offset(&self) -> usize { self.offset }
|
pub const fn offset(&self) -> usize { self.offset }
|
||||||
pub const fn mask(&self) -> usize { self.mask }
|
pub const fn mask(&self) -> usize { self.mask }
|
||||||
|
pub const fn register(&self) -> Register { self.register }
|
||||||
}
|
}
|
||||||
#[derive(Debug, Copy, Clone)]
|
#[derive(Debug, Copy, Clone)]
|
||||||
pub struct CSR<T> {
|
pub struct CSR<T> {
|
||||||
|
|
@ -160,6 +161,9 @@ where
|
||||||
base: Arc::new(AtomicPtr::new(base))
|
base: Arc::new(AtomicPtr::new(base))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pub unsafe fn base(&self) -> *mut T {
|
||||||
|
self.base.load(core::sync::atomic::Ordering::SeqCst) as *mut T
|
||||||
|
}
|
||||||
pub fn clone(&self) -> Self {
|
pub fn clone(&self) -> Self {
|
||||||
AtomicCsr {
|
AtomicCsr {
|
||||||
base: self.base.clone()
|
base: self.base.clone()
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ impl Field {
|
||||||
}
|
}
|
||||||
pub const fn offset(&self) -> usize { self.offset }
|
pub const fn offset(&self) -> usize { self.offset }
|
||||||
pub const fn mask(&self) -> usize { self.mask }
|
pub const fn mask(&self) -> usize { self.mask }
|
||||||
|
pub const fn register(&self) -> Register { self.register }
|
||||||
}
|
}
|
||||||
#[derive(Debug, Copy, Clone)]
|
#[derive(Debug, Copy, Clone)]
|
||||||
pub struct CSR<T> {
|
pub struct CSR<T> {
|
||||||
|
|
@ -160,6 +161,9 @@ where
|
||||||
base: Arc::new(AtomicPtr::new(base))
|
base: Arc::new(AtomicPtr::new(base))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
pub unsafe fn base(&self) -> *mut T {
|
||||||
|
self.base.load(core::sync::atomic::Ordering::SeqCst) as *mut T
|
||||||
|
}
|
||||||
pub fn clone(&self) -> Self {
|
pub fn clone(&self) -> Self {
|
||||||
AtomicCsr {
|
AtomicCsr {
|
||||||
base: self.base.clone()
|
base: self.base.clone()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue