[PATCH] score: Delete _Thread_BSP_context

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Feb 14 14:28:34 UTC 2014


On 2014-02-14 15:21, Gedare Bloom wrote:
>>> >>Does it make sense to add noreturn attributes to the initialization
>>> >>call path starting with boot_card through
>>> >>rtems_initialize_start_multitasking()?
>> >
>> >
>> >Its already there:
>> >
>> >http://git.rtems.org/rtems/commit/?id=48bff53b3dec885085b87db413329830110c9bb0
>> >
> Ah, it is OK to only put it at the function declaration? Does it hurt
> to replicate the noreturn statement in the function definition? I
> think it can be more obvious to someone who reads the code.
>

The only place it matters is the function declaration.  This attribute tells 
the compiler: hey look, if you call this function, then it will not return so 
don't care about what comes next.

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