[Bug 1824] Keep rtems_shutdown_executive() parameter

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Mon Jul 11 11:22:05 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1824

Sebastian Huber <sebastian.huber at embedded-brains.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sebastian.huber at embedded-br
                   |                            |ains.de

--- Comment #3 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2011-07-11 06:22:04 CDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > What about changing the signature to return an int or uint32_t and returning
> > the value to bootcard.c?
> 
> How? rtems_shutdown_executive() is called by the application, not by
> bootcard.c.
> 
> > What do you want to do with this?
> 
> Tell the BSP whether it should turn off or reboot the system.

The problem is that we go back to the BSP (boot_card()) with a context switch. 
A context switch has no return value.  You can use exit() and atexit() to alter
the shutdown behavior.

An alternative would be to add the least significant 8 bits of the exit status
to the system state.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list