Rename _NanoFiberSwap to _nano_fiber_swap
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
ff8c2c0487
commit
18c8d41bcc
2 changed files with 7 additions and 7 deletions
|
@ -51,7 +51,7 @@ the PendSV exception.
|
|||
#include <nanokernel.h>
|
||||
#include <nanokernel/cpu.h>
|
||||
|
||||
extern void _NanoFiberSwap(void);
|
||||
extern void _nano_fiber_swap(void);
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
|
@ -70,7 +70,7 @@ void fiber_abort(void)
|
|||
{
|
||||
_context_exit(_NanoKernel.current);
|
||||
if (_ScbIsInThreadMode()) {
|
||||
_NanoFiberSwap();
|
||||
_nano_fiber_swap();
|
||||
} else {
|
||||
_ScbPendsvSet();
|
||||
}
|
||||
|
|
|
@ -257,7 +257,7 @@ void fiber_yield(void)
|
|||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* _NanoFiberSwap - pass control from the currently executing fiber
|
||||
* _nano_fiber_swap - pass control from the currently executing fiber
|
||||
*
|
||||
* This routine is used when a fiber voluntarily gives up control of the CPU.
|
||||
*
|
||||
|
@ -266,7 +266,7 @@ void fiber_yield(void)
|
|||
* RETURNS: This function never returns
|
||||
*/
|
||||
|
||||
FUNC_NORETURN void _NanoFiberSwap(void)
|
||||
FUNC_NORETURN void _nano_fiber_swap(void)
|
||||
{
|
||||
unsigned int imask;
|
||||
|
||||
|
@ -310,7 +310,7 @@ FUNC_NORETURN void fiber_abort(void)
|
|||
/* Do normal context exit cleanup, then give up CPU control */
|
||||
|
||||
_context_exit(_NanoKernel.current);
|
||||
_NanoFiberSwap();
|
||||
_nano_fiber_swap();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -336,9 +336,9 @@ FUNC_NORETURN void fiber_abort(void)
|
|||
void _NanoStart(void)
|
||||
{
|
||||
PRINT_BOOT_BANNER();
|
||||
_NanoFiberSwap();
|
||||
_nano_fiber_swap();
|
||||
}
|
||||
|
||||
#else
|
||||
FUNC_ALIAS(_NanoFiberSwap, _NanoStart, void);
|
||||
FUNC_ALIAS(_nano_fiber_swap, _NanoStart, void);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue