@@ -123,7 +123,7 @@ pub enum CsselrCacheType {
123
123
}
124
124
125
125
#[ cfg( armv7m) ]
126
- impl Cpuid {
126
+ impl CPUID {
127
127
/// Selects the current CCSIDR
128
128
///
129
129
/// * `level`: the required cache level minus 1, e.g. 0 for L1, 1 for L2
@@ -544,7 +544,7 @@ mod scb_consts {
544
544
use self :: scb_consts:: * ;
545
545
546
546
#[ cfg( armv7m) ]
547
- impl Scb {
547
+ impl SCB {
548
548
/// Enables I-Cache if currently disabled
549
549
#[ inline]
550
550
pub fn enable_icache ( & self ) {
@@ -610,7 +610,7 @@ impl Scb {
610
610
611
611
/// Enables D-cache if currently disabled
612
612
#[ inline]
613
- pub fn enable_dcache ( & self , cpuid : & Cpuid ) {
613
+ pub fn enable_dcache ( & self , cpuid : & CPUID ) {
614
614
// Don't do anything if DCache is already enabled
615
615
if self . dcache_enabled ( ) {
616
616
return ;
@@ -628,7 +628,7 @@ impl Scb {
628
628
629
629
/// Disables D-cache if currently enabled
630
630
#[ inline]
631
- pub fn disable_dcache ( & self , cpuid : & Cpuid ) {
631
+ pub fn disable_dcache ( & self , cpuid : & CPUID ) {
632
632
// Don't do anything if DCache is already disabled
633
633
if !self . dcache_enabled ( ) {
634
634
return ;
@@ -655,7 +655,7 @@ impl Scb {
655
655
/// stack, depending on optimisations, breaking returning to the call point.
656
656
/// It's used immediately before enabling the dcache, but not exported publicly.
657
657
#[ inline]
658
- fn invalidate_dcache ( & self , cpuid : & Cpuid ) {
658
+ fn invalidate_dcache ( & self , cpuid : & CPUID ) {
659
659
// All of CBP is write-only so no data races are possible
660
660
let cbp = unsafe { & mut * CBP . get ( ) } ;
661
661
@@ -675,7 +675,7 @@ impl Scb {
675
675
676
676
/// Cleans D-cache
677
677
#[ inline]
678
- pub fn clean_dcache ( & self , cpuid : & Cpuid ) {
678
+ pub fn clean_dcache ( & self , cpuid : & CPUID ) {
679
679
// All of CBP is write-only so no data races are possible
680
680
let cbp = unsafe { & mut * CBP . get ( ) } ;
681
681
@@ -694,7 +694,7 @@ impl Scb {
694
694
695
695
/// Cleans and invalidates D-cache
696
696
#[ inline]
697
- pub fn clean_invalidate_dcache ( & self , cpuid : & Cpuid ) {
697
+ pub fn clean_invalidate_dcache ( & self , cpuid : & CPUID ) {
698
698
// All of CBP is write-only so no data races are possible
699
699
let cbp = unsafe { & mut * CBP . get ( ) } ;
700
700
@@ -1015,7 +1015,7 @@ mod cbp_consts {
1015
1015
use self :: cbp_consts:: * ;
1016
1016
1017
1017
#[ cfg( armv7m) ]
1018
- impl Cbp {
1018
+ impl CBP {
1019
1019
/// I-cache invalidate all to PoU
1020
1020
#[ inline( always) ]
1021
1021
pub fn iciallu ( & self ) {
0 commit comments