Rename cmdpacket to cmd_packet
Updating local 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" -o -name "*.arch" \) \ ! -path "./host/src/genIdt/*" \ ! -path "*/outdir/*" | xargs sed -i 's/\b'${1}'\b/'${2}'/g'; Change-Id: Ie65865c480be5b6a678ef4716dade3ee745bd88f Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
84bb42daed
commit
0db750f266
2 changed files with 11 additions and 11 deletions
|
@ -50,7 +50,7 @@ PendSV exception and cause the immediate context switch to K_swapper.
|
||||||
#include <nanokernel.h>
|
#include <nanokernel.h>
|
||||||
#include <misc/__assert.h>
|
#include <misc/__assert.h>
|
||||||
|
|
||||||
static struct k_args cmdpacket;
|
static struct k_args cmd_packet;
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
|
@ -74,12 +74,12 @@ void _TaskAbort(void)
|
||||||
if (_ScbIsInThreadMode()) {
|
if (_ScbIsInThreadMode()) {
|
||||||
_task_ioctl(_k_current_task->Ident, taskAbortCode);
|
_task_ioctl(_k_current_task->Ident, taskAbortCode);
|
||||||
} else {
|
} else {
|
||||||
cmdpacket.Comm = TSKOP;
|
cmd_packet.Comm = TSKOP;
|
||||||
cmdpacket.Args.g1.task = _k_current_task->Ident;
|
cmd_packet.Args.g1.task = _k_current_task->Ident;
|
||||||
cmdpacket.Args.g1.opt = taskAbortCode;
|
cmd_packet.Args.g1.opt = taskAbortCode;
|
||||||
cmdpacket.alloc = false;
|
cmd_packet.alloc = false;
|
||||||
_k_current_task->Args = &cmdpacket;
|
_k_current_task->Args = &cmd_packet;
|
||||||
nano_isr_stack_push(&_k_command_stack, (uint32_t) &cmdpacket);
|
nano_isr_stack_push(&_k_command_stack, (uint32_t) &cmd_packet);
|
||||||
_ScbPendsvSet();
|
_ScbPendsvSet();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,9 +94,9 @@ cmdPkt_t *_cmd_pkt_get(
|
||||||
* RETURNS: N/A
|
* RETURNS: N/A
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void _k_task_call(struct k_args *cmdpacket)
|
void _k_task_call(struct k_args *cmd_packet)
|
||||||
{
|
{
|
||||||
cmdpacket->alloc = false;
|
cmd_packet->alloc = false;
|
||||||
_k_current_task->Args = cmdpacket;
|
_k_current_task->Args = cmd_packet;
|
||||||
nano_task_stack_push(&_k_command_stack, (uint32_t)cmdpacket);
|
nano_task_stack_push(&_k_command_stack, (uint32_t)cmd_packet);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue