[RTEMS Project] #4923: FPU context init/switch not working well on more than 2 tasks on Cortex-Mx/ARMv7-M platform

RTEMS trac trac at rtems.org
Fri Jul 7 14:48:04 UTC 2023


#4923: FPU context init/switch not working well on more than 2 tasks on Cortex-
Mx/ARMv7-M platform
----------------------+---------------------
 Reporter:  kgardas   |       Owner:  (none)
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:
Component:  arch/arm  |     Version:
 Severity:  major     |  Resolution:
 Keywords:            |  Blocked By:
 Blocking:            |
----------------------+---------------------

Comment (by kgardas):

 Ad _Thread_Handler breakpoint:
 {{{
 (gdb) b _Thread_Handler
 Breakpoint 1 at 0x8003748: file
 ../../../cpukit/include/rtems/score/percpu.h, line 719.
 Note: automatically using hardware breakpoints for read-only addresses.
 (gdb) c
 Continuing.

 Breakpoint 1, _Thread_Handler ()
     at ../../../cpukit/include/rtems/score/percpu.h:719
 719       return cpu->executing;
 (gdb) where
 #0  _Thread_Handler () at ../../../cpukit/include/rtems/score/percpu.h:719
 #1  0x08003748 in _Thread_Get (id=<optimized out>, lock_context=0x0)
     at ../../../cpukit/score/src/threadget.c:63
 Backtrace stopped: previous frame identical to this frame (corrupt stack?)
 (gdb) c
 Continuing.

 Breakpoint 1, _Thread_Handler ()
     at ../../../cpukit/include/rtems/score/percpu.h:719
 719       return cpu->executing;
 (gdb) c
 Continuing.

 Breakpoint 1, _Thread_Handler ()
     at ../../../cpukit/include/rtems/score/percpu.h:719
 719       return cpu->executing;
 (gdb) c
 Continuing.

 Breakpoint 1, _Thread_Handler ()
     at ../../../cpukit/include/rtems/score/percpu.h:719
 719       return cpu->executing;
 }}}

 this looks like some macro executing:

 {{{
 static inline struct _Thread_Control *_Per_CPU_Get_executing(
   const Per_CPU_Control *cpu
 )
 {
   return cpu->executing;
 }
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4923#comment:6>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list