Renaming InitMap _mem_map_init

Updating micro kernel functions to follow a consistent naming convention.
Part of that process is the removal of camelCase naming conventions for the
preferred_underscore_method.

Change accomplished with the following script:

#!/bin/bash
echo "Searching for ${1} to replace with ${2}"
find . -type f \( -iname \*.c -o -iname \*.h -o -iname \*.s -o -iname \*.kconf \) \
       -not \( -path host/src/genIdt -prune \) \   \
       -not \( -path host/src/gen_tables -prune \) \
       -print | xargs sed -i "s/"${1}"/"${2}"/g"

Change-Id: I0eb8925e53f00b7993374fd8ed3e6ac950dfc1ef
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-28 11:35:49 -07:00 committed by Anas Nashif
commit 12af4313ea
3 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ extern "C" {
#ifndef LITE
extern void InitMap(void);
extern void _mem_map_init(void);
extern int task_mem_map_used_get(kmemory_map_t map);
extern int _task_mem_map_alloc(kmemory_map_t mmap, void **mptr, int32_t time);

View file

@ -36,14 +36,14 @@
/*******************************************************************************
*
* InitMap - initialize kernel memory map subsystem
* _mem_map_init - initialize kernel memory map subsystem
*
* Perform any initialization of memory maps that wasn't done at build time.
*
* RETURNS: N/A
*/
void InitMap(void)
void _mem_map_init(void)
{
int i, j, w;
struct map_struct *M;

View file

@ -950,7 +950,7 @@ def kernel_main_c_node_init():
if (len(pipe_list) > 0):
kernel_main_c_out(" InitPipe();\n")
if (len(map_list) > 0):
kernel_main_c_out(" InitMap();\n")
kernel_main_c_out(" _mem_map_init();\n")
if (len(pool_list) > 0):
kernel_main_c_out(" InitPools();\n")
kernel_main_c_out("}\n")