[RTEMS Project] #4627: Multitasking start is broken on SMP targets which do not restore the interrupt state during context switching

RTEMS trac trac at rtems.org
Tue Mar 8 08:22:44 UTC 2022


#4627: Multitasking start is broken on SMP targets which do not restore the
interrupt state during context switching
------------------------------+-----------------------------
  Reporter:  Sebastian Huber  |      Owner:  Sebastian Huber
      Type:  defect           |     Status:  assigned
  Priority:  normal           |  Milestone:  6.1
 Component:  score            |    Version:  5
  Severity:  normal           |   Keywords:  qualification
Blocked By:                   |   Blocking:
------------------------------+-----------------------------
 The current SMP multitasking start assumed that the initial heir thread of
 a processor starts execution in _Thread_Handler() which sets the interrupt
 state explicitly by _ISR_Set_level(). Under certain timing conditions
 processors may perform an initial context switch to a thread which already
 executes its thread body. In this case, interrupts are disabled after the
 context switch on targets which do not save/restore the interrupt state
 during a context switch (for example arm and riscv).

--
Ticket URL: <http://devel.rtems.org/ticket/4627>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list