Rename __defaultEsf to _default_esf

Updating global variable's name to follow a consistent naming convention.
Explicitly moved from __ to _ by direction of Ben Walsh

Change accomplished with the following script:

   #!/bin/bash
   echo "Searching for ${1} to replace with ${2}"
   find ./ \( -name "*.[chs]" -o -name "sysgen.py" -o -name "*.kconf" -o -name "*.arch" \) \
            ! -path "./host/src/genIdt/*" \
            ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g';

Change-Id: Idd6f7c3c2fdd818f0a794985f3689705cac3c0a2
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-05-08 17:12:56 -05:00 committed by Anas Nashif
commit 2ac4a04b92
10 changed files with 15 additions and 15 deletions

View file

@ -48,7 +48,7 @@ ARCv2 CPUs.
#define PR_EXC(...)
#endif /* CONFIG_PRINTK */
const NANO_ESF __defaultEsf = {
const NANO_ESF _default_esf = {
0xdeaddead, /* placeholder */
};
@ -63,7 +63,7 @@ const NANO_ESF __defaultEsf = {
*
* The caller is expected to always provide a usable ESF. In the event that the
* fatal error does not have a hardware generated ESF, the caller should either
* create its own or use a pointer to the global default ESF <__defaultEsf>.
* create its own or use a pointer to the global default ESF <_default_esf>.
*
* RETURNS: This function does not return.
*

View file

@ -103,7 +103,7 @@ void _Fault(void)
{
uint32_t ecr = _arc_v2_aux_reg_read(_ARC_V2_ECR);
FAULT_DUMP(&__defaultEsf, ecr);
FAULT_DUMP(&_default_esf, ecr);
_SysFatalErrorHandler(_NANO_ERR_HW_EXCEPTION, &__defaultEsf);
_SysFatalErrorHandler(_NANO_ERR_HW_EXCEPTION, &_default_esf);
}

View file

@ -58,7 +58,7 @@ This module provides the _NanoFatalErrorHandler() routine for ARM Cortex-M.
* Define a default ESF for use with _NanoFatalErrorHandler() in the event
* the caller does not have a NANO_ESF to pass
*/
const NANO_ESF __defaultEsf = {0xdeaddead, /* a1 */
const NANO_ESF _default_esf = {0xdeaddead, /* a1 */
0xdeaddead, /* a2 */
0xdeaddead, /* a3 */
0xdeaddead, /* a4 */
@ -79,7 +79,7 @@ const NANO_ESF __defaultEsf = {0xdeaddead, /* a1 */
*
* The caller is expected to always provide a usable ESF. In the event that the
* fatal error does not have a hardware generated ESF, the caller should either
* create its own or use a pointer to the global default ESF <__defaultEsf>.
* create its own or use a pointer to the global default ESF <_default_esf>.
*
* RETURNS: This function does not return.
*

View file

@ -52,7 +52,7 @@ This module provides the _NanoFatalErrorHandler() routine.
* Define a default ESF for use with _NanoFatalErrorHandler() in the event
* the caller does not have a NANO_ESF to pass
*/
const NANO_ESF __defaultEsf = {
const NANO_ESF _default_esf = {
#ifdef CONFIG_GDB_INFO
0xdeaddead, /* EBP */
0xdeaddead, /* EBX */
@ -79,7 +79,7 @@ const NANO_ESF __defaultEsf = {
*
* The caller is expected to always provide a usable ESF. In the event that the
* fatal error does not have a hardware generated ESF, the caller should either
* create its own or use a pointer to the global default ESF <__defaultEsf>.
* create its own or use a pointer to the global default ESF <_default_esf>.
*
* RETURNS: This function does not return.
*

View file

@ -46,7 +46,7 @@ struct __esf {
};
typedef struct __esf NANO_ESF;
extern const NANO_ESF __defaultEsf;
extern const NANO_ESF _default_esf;
#endif
#endif /* _ARCH_ARC_V2_EXC_H_ */

View file

@ -54,7 +54,7 @@ struct __esf {
typedef struct __esf NANO_ESF;
extern const NANO_ESF __defaultEsf;
extern const NANO_ESF _default_esf;
extern void _ExcExit(void);
#endif

View file

@ -369,7 +369,7 @@ extern FUNC_NORETURN void _NanoFatalErrorHandler(unsigned int reason,
extern FUNC_NORETURN void _SysFatalErrorHandler(unsigned int reason,
const NANO_ESF *pEsf);
/* Dummy ESF for fatal errors that would otherwise not have an ESF */
extern const NANO_ESF __defaultEsf;
extern const NANO_ESF _default_esf;
/*
* BSP provided routine which kernel invokes to configure an interrupt vector

View file

@ -63,7 +63,7 @@ void FUNC_NORETURN _StackCheckHandler(void)
/* Stack canary error is a software fatal condition; treat it as such.
*/
_NanoFatalErrorHandler(_NANO_ERR_STACK_CHK_FAIL, &__defaultEsf);
_NanoFatalErrorHandler(_NANO_ERR_STACK_CHK_FAIL, &_default_esf);
}
#endif /* CONFIG_STACK_CANARIES */

View file

@ -135,7 +135,7 @@ FUNC_NORETURN void _context_entry(
/* Loss of essential context is a system fatal error */
_NanoFatalErrorHandler(_NANO_ERR_INVALID_TASK_EXIT,
&__defaultEsf);
&_default_esf);
}
/* Gracefully terminate the currently executing context */

View file

@ -67,7 +67,7 @@ errno_t __k_memcpy_s(void *dest, size_t nDestElem, const void *src,
{
if ((dest == NULL) || (src == NULL) || (nDestElem < nElem)) {
_NanoFatalErrorHandler(_NANO_ERR_INVALID_STRING_OP,
&__defaultEsf);
&_default_esf);
}
/*
@ -143,7 +143,7 @@ errno_t __strcpy_s(char *dest, size_t nDestElem, const char *src)
dest[0] = '\0';
}
_NanoFatalErrorHandler (_NANO_ERR_INVALID_STRING_OP, &__defaultEsf);
_NanoFatalErrorHandler (_NANO_ERR_INVALID_STRING_OP, &_default_esf);
/*
* the following statement is included in case the compiler