From ff8c2c0487609c01f920a193651a54ced50c37ec Mon Sep 17 00:00:00 2001 From: Dan Kalowsky Date: Thu, 16 Apr 2015 12:25:11 -0700 Subject: [PATCH] Rename _FiberStart to _fiber_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 --- arch/x86/core/nanocontext.c | 2 +- kernel/nanokernel/core/nanofiber.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/core/nanocontext.c b/arch/x86/core/nanocontext.c index 7de16349ea5..0f23b51d9dc 100644 --- a/arch/x86/core/nanocontext.c +++ b/arch/x86/core/nanocontext.c @@ -282,7 +282,7 @@ __asm__("\t.globl _context_entry\n" * contexts and kernel task contexts. * * This function is called by start_task() to initialize task contexts, and -* by _FiberStart() (nanoFiberStart) to initialize fiber contexts. +* by _fiber_start() (nanoFiberStart) to initialize fiber contexts. * * The "context control block" (CCS) is carved from the "end" of the specified * context stack memory. diff --git a/kernel/nanokernel/core/nanofiber.c b/kernel/nanokernel/core/nanofiber.c index 9213962fba3..f3777f400cd 100644 --- a/kernel/nanokernel/core/nanofiber.c +++ b/kernel/nanokernel/core/nanofiber.c @@ -153,12 +153,12 @@ int _context_essential_check(tCCS *pCtx /* pointer to context */ /* currently the fiber and task implementations are identical */ -FUNC_ALIAS(_FiberStart, fiber_fiber_start, void); -FUNC_ALIAS(_FiberStart, task_fiber_start, void); +FUNC_ALIAS(_fiber_start, fiber_fiber_start, void); +FUNC_ALIAS(_fiber_start, task_fiber_start, void); /******************************************************************************* * -* _FiberStart - initialize and start a fiber context +* _fiber_start - initialize and start a fiber context * * This routine initilizes and starts a fiber context; it can be called from * either a fiber or a task context. When this routine is called from a @@ -170,14 +170,14 @@ FUNC_ALIAS(_FiberStart, task_fiber_start, void); * * if ((_NanoKernel.current->flags & TASK) == TASK) * -* Given that the _FiberStart() primitive is not considered real-time +* Given that the _fiber_start() primitive is not considered real-time * performance critical, a runtime check to differentiate between a calling * task or fiber is performed in order to conserve footprint. * * RETURNS: N/A */ -void _FiberStart(char *pStack, +void _fiber_start(char *pStack, unsigned stackSize, /* stack size in bytes */ nano_fiber_entry_t pEntry, int parameter1,