Rename K_MapCount to _k_mem_map_count

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: Ifdfb9042ff4e83f6d7a8430d47c573b85eca9048
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:26 -05:00 committed by Anas Nashif
commit 5c3646b5d9
4 changed files with 5 additions and 5 deletions

View file

@ -80,7 +80,7 @@ extern const knode_t _k_this_node;
extern int K_StackSize;
extern int _k_task_count;
extern int K_MapCount;
extern int _k_mem_map_count;
extern int K_PoolCount;
extern int K_PipeCount;
extern const int K_max_eventnr;

View file

@ -55,7 +55,7 @@ extern struct pool_struct _k_mem_pool_list[];
extern struct pipe_struct _k_pipe_list[];
#ifndef LITE
extern int K_MapCount;
extern int _k_mem_map_count;
#endif
extern int K_PoolCount;
extern int K_PipeCount;

View file

@ -31,7 +31,7 @@
*/
#include "microkernel/k_struct.h"
#include "minik.h" /* _k_mem_map_list, K_MapCount */
#include "minik.h" /* _k_mem_map_list, _k_mem_map_count */
#include <sections.h>
/*******************************************************************************
@ -48,7 +48,7 @@ void InitMap(void)
int i, j, w;
struct map_struct *M;
for (i = 0, M = _k_mem_map_list; i < K_MapCount; i++, M++) {
for (i = 0, M = _k_mem_map_list; i < _k_mem_map_count; i++, M++) {
char *p;
char *q;

View file

@ -632,7 +632,7 @@ def kernel_main_c_maps():
# map global variables
kernel_main_c_out("\nint K_MapCount = %d;\n" % (total_maps))
kernel_main_c_out("\nint _k_mem_map_count = %d;\n" % (total_maps))
if (total_maps == 0):
kernel_main_c_out("\nstruct map_struct * _k_mem_map_list = NULL;\n")