Page 1 of 1

Questions on meanings of Macros in kernel!

Posted: Thu Dec 06, 2012 4:21 am
by findfrienda
Hi, Dear all,

I found some macros defined in the kernel, I have no idea about their meanings. Can sb give instructions:

1). #define __RN__
Meaning:______________________________________
2).#define __RN_TASK__
Meaning:______________________________________

And , some function I didn't find its definition, just list here:
1). EE_rn_send

Code: Select all

StatusType EE_oo_ActivateTask(TaskType TaskID)
{
  register EE_FREG flag;

  EE_ORTI_set_service_in(EE_SERVICETRACE_ACTIVATETASK);

  #ifdef [b]__RN_TASK__[/b]    
 if (EE_IS_TID_REMOTE(TaskID)) {
          EE_TYPERN_PARAM par;
          par.pending = 1U;
         /* forward the request to another CPU */
        (void)[b]EE_rn_send[/b]((EE_SREG)EE_UNMARK_REMOTE_TID(TaskID),EE_RN_TASK, par );
        EE_ORTI_set_service_out(EE_SERVICETRACE_ACTIVATETASK);
       return E_OK;
     }
#endif /* __RN_TASK__ */
...

Re: Questions on meanings of Macros in kernel!

Posted: Thu Dec 06, 2012 8:49 am
by paolo.gai
They are used with multicore chips, to handle interprocessor interrupts. the functions are in pkg/kernel/rn

PJ

Re: Questions on meanings of Macros in kernel!

Posted: Thu Dec 06, 2012 12:37 pm
by findfrienda
Thanks!

__RN__ is shor for some words? If so, what's the full name:)?

Will it be more clean if we choose word such as __MCI__(Multi-core Interrupt) ? :)

The first glance at the __RN__, I was confused! :)

Re: Questions on meanings of Macros in kernel!

Posted: Thu Dec 06, 2012 3:05 pm
by paolo.gai
Well, __MCI__ is similar to __MCU__ ... RN started as Remote Notification...

PJ