[rtems commit] sparc: Fix move of CPU counter implementation
    Sebastian Huber 
    sebh at rtems.org
       
    Fri Oct 20 12:50:42 UTC 2023
    
    
  
Module:    rtems
Branch:    master
Commit:    36b935f1c383bee71bbb620260e834d3004d4719
Changeset: http://git.rtems.org/rtems/commit/?id=36b935f1c383bee71bbb620260e834d3004d4719
Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Oct 20 15:12:57 2023 +0200
sparc: Fix move of CPU counter implementation
This fixes a build error with RTEMS_PROFILING enabled.
Update #4954.
---
 cpukit/score/cpu/sparc/sparc-isr-handler.S | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/cpukit/score/cpu/sparc/sparc-isr-handler.S b/cpukit/score/cpu/sparc/sparc-isr-handler.S
index cb4fb345a3..9ecb44e870 100644
--- a/cpukit/score/cpu/sparc/sparc-isr-handler.S
+++ b/cpukit/score/cpu/sparc/sparc-isr-handler.S
@@ -231,9 +231,7 @@ dont_do_the_window:
         bnz      dont_switch_stacks      ! No, then do not switch stacks
 
 #if defined(RTEMS_PROFILING)
-         sethi   %hi(_SPARC_Counter), %o5
-        ld       [%o5 + %lo(_SPARC_Counter)], %l4
-        call     %l4
+        call     SYM(_SPARC_Counter_read_ISR_disabled)
          nop
         mov      %o0, %o5
 #else
@@ -335,7 +333,7 @@ pil_fixed:
         cmp      %l7, 0
         bne      profiling_not_outer_most_exit
          nop
-        call     %l4                    ! Call _SPARC_Counter.counter_read
+        call     SYM(_SPARC_Counter_read_ISR_disabled)
          mov     %g1, %l4               ! Save previous interrupt status
         mov      %o0, %o2               ! o2 = 3rd arg = interrupt exit instant
         mov      %l3, %o1               ! o1 = 2nd arg = interrupt entry instant
    
    
More information about the vc
mailing list