[PATCH v2] score: Delete _Thread_BSP_context

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Feb 17 07:52:22 UTC 2014


On 2014-02-14 10:32, Sebastian Huber wrote:
> Do not return to BSP context in the exit() shutdown path.  This makes it
> possible to re-use the initialization stack.  It can be used for the
> interrupt stack for example.  On targets with a small RAM this is a
> considerable benefit.
>
> This change eliminates also some special cases and simplifies the code.
>
> Use an ISR lock to protect the system state change in
> rtems_shutdown_executive().
>
> Delete _Thread_Set_global_exit_status(),
> _Thread_Get_global_exit_status() and _Thread_Stop_multitasking().
>
> v2: Use ISR lock instead of _Thread_Disable_dispatch() to avoid lock down of
> other processors.  Format changes.

There is more work to do here.  The shutdown sequence in the SMP configuration 
is still broken.  I will work on this the next days.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list