Questions on meanings of Macros in kernel!

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Locked
findfrienda

Questions on meanings of Macros in kernel!

Post 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__ */
...
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Questions on meanings of Macros in kernel!

Post by paolo.gai »

They are used with multicore chips, to handle interprocessor interrupts. the functions are in pkg/kernel/rn

PJ
findfrienda

Re: Questions on meanings of Macros in kernel!

Post 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! :)
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Questions on meanings of Macros in kernel!

Post by paolo.gai »

Well, __MCI__ is similar to __MCU__ ... RN started as Remote Notification...

PJ
Locked