Rename K_MbxList to _k_mbox_list

Updating global variable's name to follow a consistent naming convention.

Change accomplished with the following script:

   #!/bin/bash
   echo "Searching for ${1} to replace with ${2}"
   find ./ \( -name "*.[chs]" -o -name "sysgen.py" -o -name "*.kconf" \) \
            ! -path "./host/src/genIdt/*" \
            ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g';

Change-Id: Ibe83bc837cdae54cf553b80efd989ad321447873
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:24 -05:00 committed by Anas Nashif
commit 65ffb9e81e
3 changed files with 5 additions and 5 deletions

View file

@ -47,7 +47,7 @@ extern int _k_task_count;
#ifndef LITE #ifndef LITE
extern struct map_struct _k_mem_map_list[]; extern struct map_struct _k_mem_map_list[];
#endif #endif
extern struct mbx_struct K_MbxList[]; extern struct mbx_struct _k_mbox_list[];
extern struct mutex_struct K_MutexList[]; extern struct mutex_struct K_MutexList[];
extern struct sem_struct K_SemList[]; extern struct sem_struct K_SemList[];
extern struct que_struct K_QueList[]; extern struct que_struct K_QueList[];

View file

@ -342,7 +342,7 @@ void K_sendreq(struct k_args *Writer)
Writer->Ctxt.proc = sender; Writer->Ctxt.proc = sender;
MailBox = K_MbxList + OBJ_INDEX(MailBoxId); MailBox = _k_mbox_list + OBJ_INDEX(MailBoxId);
copypacket(&CopyWriter, Writer); copypacket(&CopyWriter, Writer);
@ -580,7 +580,7 @@ void K_recvreq(struct k_args *Reader)
CopyReader->Forw = NULL; CopyReader->Forw = NULL;
MailBox = K_MbxList + OBJ_INDEX(MailBoxId); MailBox = _k_mbox_list + OBJ_INDEX(MailBoxId);
for (CopyWriter = MailBox->Writers, temp = NULL; CopyWriter != NULL; for (CopyWriter = MailBox->Writers, temp = NULL; CopyWriter != NULL;
temp = CopyWriter, CopyWriter = CopyWriter->Forw) { temp = CopyWriter, CopyWriter = CopyWriter->Forw) {

View file

@ -612,13 +612,13 @@ def kernel_main_c_mailboxes():
total_mbxs = len(mbx_list) total_mbxs = len(mbx_list)
if (total_mbxs == 0): if (total_mbxs == 0):
kernel_main_c_out("\nstruct mbx_struct * K_MbxList = NULL;\n") kernel_main_c_out("\nstruct mbx_struct * _k_mbox_list = NULL;\n")
return return
# mailbox descriptors # mailbox descriptors
kernel_main_c_out("\n" + kernel_main_c_out("\n" +
"struct mbx_struct K_MbxList[%d] =\n" % (total_mbxs) + "struct mbx_struct _k_mbox_list[%d] =\n" % (total_mbxs) +
"{\n") "{\n")
for mbx in mbx_list: for mbx in mbx_list:
kernel_main_c_out(" {NULL, NULL, 0},\n") kernel_main_c_out(" {NULL, NULL, 0},\n")