Rename mainStack to _k_init_and_idle_task_stack

Updating global variable's name to follow a consistent naming convention.

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" \) \
            ! -path "./host/src/genIdt/*" \
            ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g';

Change-Id: I3d7f9dfe1874d189fa613088efd8c056b974e01b
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:23 -05:00 committed by Anas Nashif
commit d57685c93e

View file

@ -46,7 +46,7 @@ This module contains routines that are used to initialize the nanokernel.
/* stack space for the background task context */
static char __noinit mainStack[CONFIG_MAIN_STACK_SIZE];
static char __noinit _k_init_and_idle_task_stack[CONFIG_MAIN_STACK_SIZE];
/* storage space for the interrupt stack */
@ -154,7 +154,7 @@ void _nano_init(tCCS *dummyOutContext, int argc, char *argv[], char *envp[])
*/
_NanoKernel.task =
_NewContext(mainStack, /* pStackMem */
_NewContext(_k_init_and_idle_task_stack, /* pStackMem */
CONFIG_MAIN_STACK_SIZE, /* stackSize */
(_ContextEntry)main, /* pEntry */
(_ContextArg)argc, /* parameter1 */