File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/r3_port_arm_m/src/systick_tickful Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ macro_rules! use_systick_tickful {
81
81
const MAX_TICK_COUNT : UTicks = u32 :: MAX ;
82
82
const MAX_TIMEOUT : UTicks = u32 :: MAX ;
83
83
84
+ #[ inline( always) ]
84
85
unsafe fn tick_count( ) -> UTicks {
85
86
// Safety: CPU Lock active
86
87
unsafe { TIMER_STATE . tick_count( ) }
@@ -89,6 +90,7 @@ macro_rules! use_systick_tickful {
89
90
90
91
// Safety: Only `use_systick_tickful!` is allowed to `impl` this
91
92
unsafe impl imp:: SysTickTickfulInstance for $Traits {
93
+ #[ inline( always) ]
92
94
unsafe fn handle_tick( ) {
93
95
// Safety: Interrupt context, CPU Lock inactive
94
96
unsafe { TIMER_STATE . handle_tick:: <Self >( ) } ;
Original file line number Diff line number Diff line change 48
48
StaticInterruptHandler :: define ( )
49
49
. line ( INTERRUPT_SYSTICK )
50
50
. start (
51
- #[ inline]
51
+ #[ inline( always ) ]
52
52
|| unsafe { Traits :: handle_tick ( ) } ,
53
53
)
54
54
. finish ( b) ;
@@ -95,7 +95,7 @@ impl<TickfulState: TickfulStateTrait> StateCore<TickfulState> {
95
95
/// # Safety
96
96
///
97
97
/// Interrupt context, CPU Lock inactive
98
- #[ inline]
98
+ #[ inline( always ) ]
99
99
pub unsafe fn handle_tick < Traits : SysTickTickfulInstance > ( & self ) {
100
100
<System < Traits > as raw:: KernelBase >:: raw_acquire_cpu_lock ( ) . unwrap ( ) ;
101
101
@@ -116,6 +116,7 @@ impl<TickfulState: TickfulStateTrait> StateCore<TickfulState> {
116
116
/// # Safety
117
117
///
118
118
/// CPU Lock active
119
+ #[ inline]
119
120
pub unsafe fn tick_count ( & self ) -> UTicks {
120
121
// Safety: CPU Lock protects it from concurrent access
121
122
let inner = unsafe { & mut * self . inner . get ( ) } ;
You can’t perform that action at this time.
0 commit comments