[RTEMS Project] #3000: Setting interrupt level in the mode arg on SMP returns RTEMS_UNSATISFIED

RTEMS trac trac at rtems.org
Wed Apr 19 02:11:59 UTC 2017


#3000: Setting interrupt level in the mode arg on SMP returns RTEMS_UNSATISFIED
-------------------------+-------------------------
 Reporter:  Chris Johns  |      Owner:  Chris Johns
     Type:  defect       |     Status:  assigned
 Priority:  normal       |  Milestone:  4.12.0
Component:  cpukit       |    Version:  4.12
 Severity:  normal       |   Keywords:
-------------------------+-------------------------
 If for any reason a user sets the interrupt level in the mode on an SMP
 build the error {{{RTEMS_UNSATISFIED}}} is returned. The documentation
 indicates this is a lack of stack and this confusing.

 The reason this happens is the SMP check for an interrupt level being set
 is in the score's {{{_Thread_Initialize}}}. I propose that and
 {{{is_preemptible}} check be converted to an {{assert}} and checks be
 added to the Classic API to catch these errors and report suitable error
 codes.

 There is no meaningful error code available without abusing an existing
 one so I propose adding {{{RTEMS_INVALID_MODE}}}.

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


More information about the bugs mailing list