Renaming _NanoStart to _nano_start

Updating nano 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"

Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
This commit is contained in:
Dan Kalowsky 2015-04-16 12:25:11 -07:00 committed by Anas Nashif
commit b4f9a9e04d
6 changed files with 9 additions and 9 deletions

View file

@ -40,7 +40,7 @@
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
extern void _NanoInit(nano_context_id_t, int argc, char *argv[], char *envp[]); extern void _NanoInit(nano_context_id_t, int argc, char *argv[], char *envp[]);
extern void _NanoStart(void); extern void _nano_start(void);
#endif #endif
#endif /* _ARCH_ARC_V2_INIT_H_ */ #endif /* _ARCH_ARC_V2_INIT_H_ */

View file

@ -40,7 +40,7 @@ ARM-specific nanokernel initialization interface. Included by ARM/arch.h.
#ifndef _ASMLANGUAGE #ifndef _ASMLANGUAGE
extern void _NanoInit(nano_context_id_t, int argc, char *argv[], char *envp[]); extern void _NanoInit(nano_context_id_t, int argc, char *argv[], char *envp[]);
extern void _NanoStart(void); extern void _nano_start(void);
#endif #endif
#endif /* _ARCH_ARM_CORTEXM_INIT_H_ */ #endif /* _ARCH_ARM_CORTEXM_INIT_H_ */

View file

@ -594,7 +594,7 @@ typedef void (*NANO_EOI_GET_FUNC) (void *);
extern void _NanoInit (nano_context_id_t dummyOutContext, int argc, extern void _NanoInit (nano_context_id_t dummyOutContext, int argc,
char *argv[], char *envp[]); char *argv[], char *envp[]);
extern void _NanoStart (void); extern void _nano_start (void);
extern unsigned int find_first_set (unsigned int op); extern unsigned int find_first_set (unsigned int op);

View file

@ -146,7 +146,7 @@ FUNC_NORETURN void _Cstart(void)
/* context switch into the background context (entry function is main()) /* context switch into the background context (entry function is main())
*/ */
_NanoStart(); _nano_start();
/* /*
* Compiler can't tell that the above routines won't return and issues * Compiler can't tell that the above routines won't return and issues

View file

@ -316,12 +316,12 @@ FUNC_NORETURN void fiber_abort(void)
/******************************************************************************* /*******************************************************************************
* *
* _NanoStart - start the nanokernel * _nano_start - start the nanokernel
* *
* This routine is invoked as the last step of a BSP's _Cstart() implementation * This routine is invoked as the last step of a BSP's _Cstart() implementation
* to start the nanokernel. The _NanoInit() function is called early during * to start the nanokernel. The _NanoInit() function is called early during
* the execution of _Cstart() to setup the various nanokernel data structures, * the execution of _Cstart() to setup the various nanokernel data structures,
* but it's not until _NanoStart() is invoked that a context switch into the * but it's not until _nano_start() is invoked that a context switch into the
* "main" task is performed. * "main" task is performed.
* *
* This routine should only be called from a BSP's _Cstart() implementation * This routine should only be called from a BSP's _Cstart() implementation
@ -333,12 +333,12 @@ FUNC_NORETURN void fiber_abort(void)
* Print the boot banner if enabled * Print the boot banner if enabled
*/ */
#ifdef CONFIG_BOOT_BANNER #ifdef CONFIG_BOOT_BANNER
void _NanoStart(void) void _nano_start(void)
{ {
PRINT_BOOT_BANNER(); PRINT_BOOT_BANNER();
_nano_fiber_swap(); _nano_fiber_swap();
} }
#else #else
FUNC_ALIAS(_nano_fiber_swap, _NanoStart, void); FUNC_ALIAS(_nano_fiber_swap, _nano_start, void);
#endif #endif

View file

@ -85,7 +85,7 @@ extern void main(int argc, char *argv[], char *envp[]);
* initialization sequence: * initialization sequence:
* *
* crt0.s -> _Cstart() -> _NanoInit() * crt0.s -> _Cstart() -> _NanoInit()
* -> _NanoStart() -> _Swap() (context switch into * -> _nano_start() -> _Swap() (context switch into
*"main") *"main")
* *
* main () -> kernel_init () -> task_fiber_start(... K_swapper ...) * main () -> kernel_init () -> task_fiber_start(... K_swapper ...)