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

RTEMS trac trac at rtems.org
Thu Oct 12 17:46:04 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:  score        |     Version:  4.12
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+--------------------------
Description changed by Chris Johns:

Old description:

> 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}}}.

New description:

 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#comment:6>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list