mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
regenerate the cramium-soc utralib to contain the additional debug access methods
This commit is contained in:
parent
ed42ee0be7
commit
397596c8e9
1 changed files with 4 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ impl Field {
|
|||
}
|
||||
pub const fn offset(&self) -> usize { self.offset }
|
||||
pub const fn mask(&self) -> usize { self.mask }
|
||||
pub const fn register(&self) -> Register { self.register }
|
||||
}
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct CSR<T> {
|
||||
|
|
@ -160,6 +161,9 @@ where
|
|||
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 {
|
||||
AtomicCsr {
|
||||
base: self.base.clone()
|
||||
|
|
|
|||
Loading…
Reference in a new issue