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 <daniel.kalowsky@intel.com>
This commit is contained in:
parent
bcddb11e8c
commit
ff8c2c0487
2 changed files with 6 additions and 6 deletions
|
|
@ -282,7 +282,7 @@ __asm__("\t.globl _context_entry\n"
|
||||||
* contexts and kernel task contexts.
|
* contexts and kernel task contexts.
|
||||||
*
|
*
|
||||||
* This function is called by start_task() to initialize task contexts, and
|
* 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
|
* The "context control block" (CCS) is carved from the "end" of the specified
|
||||||
* context stack memory.
|
* context stack memory.
|
||||||
|
|
|
||||||
|
|
@ -153,12 +153,12 @@ int _context_essential_check(tCCS *pCtx /* pointer to context */
|
||||||
|
|
||||||
/* currently the fiber and task implementations are identical */
|
/* currently the fiber and task implementations are identical */
|
||||||
|
|
||||||
FUNC_ALIAS(_FiberStart, fiber_fiber_start, void);
|
FUNC_ALIAS(_fiber_start, fiber_fiber_start, void);
|
||||||
FUNC_ALIAS(_FiberStart, task_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
|
* 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
|
* 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)
|
* 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
|
* performance critical, a runtime check to differentiate between a calling
|
||||||
* task or fiber is performed in order to conserve footprint.
|
* task or fiber is performed in order to conserve footprint.
|
||||||
*
|
*
|
||||||
* RETURNS: N/A
|
* RETURNS: N/A
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void _FiberStart(char *pStack,
|
void _fiber_start(char *pStack,
|
||||||
unsigned stackSize, /* stack size in bytes */
|
unsigned stackSize, /* stack size in bytes */
|
||||||
nano_fiber_entry_t pEntry,
|
nano_fiber_entry_t pEntry,
|
||||||
int parameter1,
|
int parameter1,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue