the parameter has no initial value before reference
careri/sed
careri at public.sta.net.cn
Tue Jul 17 10:42:13 UTC 2001
Hi,
You are right.
Thanks
Rong
-----Original Message-----
From: Fernando RUIZ CASAS (E-mail) [SMTP:fernando.ruiz at ctv.es]
Sent: Tuesday, July 17, 2001 3:28 PM
To: 'careri/sed'
Cc: 'Rtems-Users (E-mail)
Subject: RE: the parameter has no initial value before reference
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