Rename K_Task to _k_current_task

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: Ic81b4ad7edf476da61ae62df627866e0446714d7
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
Yonattan Louise 2015-04-27 10:28:27 -05:00 committed by Anas Nashif
commit 9bbb6e1e7b
22 changed files with 72 additions and 72 deletions

View file

@ -72,13 +72,13 @@ void _TaskAbort(void)
const int taskAbortCode = 1;
if (_ScbIsInThreadMode()) {
_task_ioctl(K_Task->Ident, taskAbortCode);
_task_ioctl(_k_current_task->Ident, taskAbortCode);
} else {
cmdpacket.Comm = TSKOP;
cmdpacket.Args.g1.task = K_Task->Ident;
cmdpacket.Args.g1.task = _k_current_task->Ident;
cmdpacket.Args.g1.opt = taskAbortCode;
cmdpacket.alloc = false;
K_Task->Args = &cmdpacket;
_k_current_task->Args = &cmdpacket;
nano_isr_stack_push(&K_Args, (uint32_t) &cmdpacket);
_ScbPendsvSet();
}