Renaming _ContextExitRtn to _context_exit

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
parent ff0641fac6
commit 522b9ad432
5 changed files with 7 additions and 7 deletions

View file

@ -68,7 +68,7 @@ extern void _NanoFiberSwap(void);
void fiber_abort(void)
{
_ContextExitRtn(_NanoKernel.current);
_context_exit(_NanoKernel.current);
if (_ScbIsInThreadMode()) {
_NanoFiberSwap();
} else {

View file

@ -81,9 +81,9 @@ extern void _NanoEssentialContextClear(void);
/* Private API to clean up when a context is aborted */
#if defined(CONFIG_HOST_TOOLS_SUPPORT)
extern void _ContextExitRtn(tCCS *ccs);
extern void _context_exit(tCCS *ccs);
#else
#define _ContextExitRtn(ccs) \
#define _context_exit(ccs) \
do {/* nothing */ \
} while (0)
#endif /* CONFIG_HOST_TOOLS_SUPPORT */

View file

@ -196,7 +196,7 @@ void abort_task(struct k_proc *X)
/* Do normal context exit cleanup */
_ContextExitRtn((tCCS *)X->workspace);
_context_exit((tCCS *)X->workspace);
/* Set TF_TERM and TF_STOP state flags */

View file

@ -51,7 +51,7 @@ ending the context, be it a task or a fiber.
#if defined(CONFIG_HOST_TOOLS_SUPPORT)
/*******************************************************************************
*
* _ContextExitRtn - context exit routine
* _context_exit - context exit routine
*
* This function is invoked when the specified context is aborted, either
* normally or abnormally. It is called for the termination of any context,
@ -65,7 +65,7 @@ ending the context, be it a task or a fiber.
* \NOMANUAL
*/
void _ContextExitRtn(tCCS *pContext)
void _context_exit(tCCS *pContext)
{
/*
* Remove context from the list of contexts. This singly linked list of

View file

@ -309,7 +309,7 @@ FUNC_NORETURN void fiber_abort(void)
{
/* Do normal context exit cleanup, then give up CPU control */
_ContextExitRtn(_NanoKernel.current);
_context_exit(_NanoKernel.current);
_NanoFiberSwap();
}
#endif