the parameter has no initial value before reference

Fernando RUIZ CASAS (E-mail) fernando.ruiz at ctv.es
Tue Jul 17 07:28:15 UTC 2001


Hi,
 IMHO ISR_Disable is a macro. (After browsing the code)
 Level is the parameter to CATCH the level.
 Level resumed once you call ISR_Enable.

Ah.. The macros and the unexpected behaviours.
Am I in the right answer?
Regards.

Fernando RUIZ CASAS
home:correo at fernando-ruiz.com
work:fernando.ruiz at ctv.es
 


> -----Mensaje original-----
> De: careri/sed [mailto:careri at public.sta.net.cn]
> Enviado el: martes, 17 de julio de 2001 2:08
> Para: rtems
> Asunto: the parameter has no initial value before reference
> 
> 
> Consider the following code in chain.c:
> 
> void _Chain_Append(
>   Chain_Control *the_chain,
>   Chain_Node    *node
> )
> {
>   ISR_Level level;
> 
>   _ISR_Disable( level );
>     _Chain_Append_unprotected( the_chain, node );
>   _ISR_Enable( level );
> }
> 
> The parameter level has no initial value when _ISR_Disable is called.
> 
> Rong
> 
> 



More information about the users mailing list