From 12af4313eaabdc0912b32847ea9f87fb879521e8 Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Tue, 28 Apr 2015 11:35:49 -0700 Subject: [PATCH] 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 --- include/microkernel/mmap.h | 2 +- kernel/microkernel/k_memmap.c | 4 ++-- scripts/sysgen.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/microkernel/mmap.h b/include/microkernel/mmap.h index fa104675b98..83c9ce6b2ae 100644 --- a/include/microkernel/mmap.h +++ b/include/microkernel/mmap.h @@ -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); diff --git a/kernel/microkernel/k_memmap.c b/kernel/microkernel/k_memmap.c index 964da1610a7..75f9985b042 100644 --- a/kernel/microkernel/k_memmap.c +++ b/kernel/microkernel/k_memmap.c @@ -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; diff --git a/scripts/sysgen.py b/scripts/sysgen.py index 67d5561e215..b9d80b8c834 100755 --- a/scripts/sysgen.py +++ b/scripts/sysgen.py @@ -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")