Rename K_Args to _k_command_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: I5e249e34ee9666666e31db6b9f71fe2abcc22400 Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
48c73dbe5d
commit
93a1d7ca89
|
@ -79,7 +79,7 @@ void _TaskAbort(void)
|
|||
cmdpacket.Args.g1.opt = taskAbortCode;
|
||||
cmdpacket.alloc = false;
|
||||
_k_current_task->Args = &cmdpacket;
|
||||
nano_isr_stack_push(&K_Args, (uint32_t) &cmdpacket);
|
||||
nano_isr_stack_push(&_k_command_stack, (uint32_t) &cmdpacket);
|
||||
_ScbPendsvSet();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ conjunction with a microkernel.
|
|||
#include <microkernel.h>
|
||||
#include <cputype.h>
|
||||
|
||||
extern struct nano_stack K_Args;
|
||||
extern struct nano_stack _k_command_stack;
|
||||
|
||||
#endif /* CONFIG_MICROKERNEL */
|
||||
|
||||
|
@ -317,7 +317,7 @@ void _TIMER_INT_HANDLER(void *unused)
|
|||
idleMode = IDLE_NOT_TICKLESS;
|
||||
_SysIdleElapsedTicks =
|
||||
idleOrigTicks + 1; /* actual # of idle ticks */
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
} else {
|
||||
/*
|
||||
* Increment the tick because _timer_idle_exit does not
|
||||
|
@ -335,7 +335,7 @@ void _TIMER_INT_HANDLER(void *unused)
|
|||
*/
|
||||
|
||||
if (_SysIdleElapsedTicks == 1) {
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -348,7 +348,7 @@ void _TIMER_INT_HANDLER(void *unused)
|
|||
*/
|
||||
accumulatedCount += sys_clock_hw_cycles_per_tick;
|
||||
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
#endif /* CONFIG_TICKLESS_IDLE */
|
||||
|
||||
numIdleTicks = _NanoIdleValGet(); /* get # of idle ticks requested */
|
||||
|
@ -376,7 +376,7 @@ void _TIMER_INT_HANDLER(void *unused)
|
|||
* one more tick has occurred -- don't need to do anything special since
|
||||
* timer is already configured to interrupt on the following tick
|
||||
*/
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
#else
|
||||
_nano_ticks++;
|
||||
|
||||
|
@ -587,7 +587,7 @@ void _timer_idle_exit(void)
|
|||
* so _SysIdleElapsedTicks is adjusted to account for it.
|
||||
*/
|
||||
_SysIdleElapsedTicks = idleOrigTicks - 1;
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
} else {
|
||||
uint32_t elapsed; /* elapsed "counter time" */
|
||||
uint32_t remaining; /* remaining "counter time" */
|
||||
|
@ -619,7 +619,7 @@ void _timer_idle_exit(void)
|
|||
|
||||
if (_SysIdleElapsedTicks) {
|
||||
/* Announce elapsed ticks to the microkernel */
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ In a nanokernel-only system this device driver omits more complex capabilities
|
|||
#include <microkernel.h>
|
||||
#include <cputype.h>
|
||||
|
||||
extern struct nano_stack K_Args;
|
||||
extern struct nano_stack _k_command_stack;
|
||||
|
||||
#ifdef CONFIG_TICKLESS_IDLE
|
||||
#define TIMER_SUPPORTS_TICKLESS
|
||||
|
@ -298,7 +298,7 @@ void _timer_int_handler(void *unused)
|
|||
* timer is already configured to interrupt on the following tick
|
||||
*/
|
||||
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
|
||||
#else
|
||||
|
||||
|
@ -335,7 +335,7 @@ void _timer_int_handler(void *unused)
|
|||
*/
|
||||
|
||||
if (_SysIdleElapsedTicks == 1) {
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
}
|
||||
|
||||
#endif /* !TIMER_SUPPORTS_TICKLESS */
|
||||
|
@ -440,7 +440,7 @@ void _timer_idle_exit(void)
|
|||
* is
|
||||
* serviced.
|
||||
*/
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
|
||||
/* timer interrupt handler reprograms the timer for the next
|
||||
* tick */
|
||||
|
@ -491,7 +491,7 @@ void _timer_idle_exit(void)
|
|||
|
||||
if (_SysIdleElapsedTicks) {
|
||||
/* Announce elapsed ticks to the microkernel */
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -144,7 +144,7 @@ static unsigned char _TimerMode = TIMER_MODE_PERIODIC;
|
|||
/* externs */
|
||||
|
||||
#ifdef CONFIG_MICROKERNEL
|
||||
extern struct nano_stack K_Args;
|
||||
extern struct nano_stack _k_command_stack;
|
||||
#endif /* CONFIG_MICROKERNEL */
|
||||
|
||||
/*******************************************************************************
|
||||
|
@ -331,7 +331,7 @@ void _timer_int_handler(void *unused /* parameter is not used */
|
|||
*/
|
||||
|
||||
if (_SysIdleElapsedTicks == 1) {
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -340,7 +340,7 @@ void _timer_int_handler(void *unused /* parameter is not used */
|
|||
|
||||
#if defined(CONFIG_MICROKERNEL)
|
||||
/* announce tick into the microkernel */
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
#endif
|
||||
|
||||
#endif /*TIMER_SUPPORTS_TICKLESS*/
|
||||
|
@ -528,7 +528,7 @@ void _timer_idle_exit(void)
|
|||
* is
|
||||
* serviced.
|
||||
*/
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
} else {
|
||||
uint32_t elapsed; /* elapsed "counter time" */
|
||||
uint32_t remaining; /* remaining "counter time" */
|
||||
|
@ -552,7 +552,7 @@ void _timer_idle_exit(void)
|
|||
|
||||
if (_SysIdleElapsedTicks) {
|
||||
/* Announce elapsed ticks to the microkernel */
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
}
|
||||
}
|
||||
_loApicTimerStart();
|
||||
|
|
|
@ -154,7 +154,7 @@ static uint32_t oldAcc = 0; /* previous accumulated value value */
|
|||
/* externs */
|
||||
|
||||
#ifdef CONFIG_MICROKERNEL
|
||||
extern struct nano_stack K_Args;
|
||||
extern struct nano_stack _k_command_stack;
|
||||
#endif /* ! CONFIG_MICROKERNEL */
|
||||
|
||||
#ifdef __DCC__
|
||||
|
@ -297,7 +297,7 @@ void _timer_int_handler(void *unusedArg /* not used */
|
|||
*/
|
||||
|
||||
if (_SysIdleElapsedTicks == 1) {
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
}
|
||||
|
||||
/* accumulate total counter value */
|
||||
|
@ -306,7 +306,7 @@ void _timer_int_handler(void *unusedArg /* not used */
|
|||
#else
|
||||
#if defined(CONFIG_MICROKERNEL)
|
||||
/* announce tick into the microkernel */
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
#endif
|
||||
|
||||
/* accumulate total counter value */
|
||||
|
@ -476,7 +476,7 @@ void _timer_idle_exit(void)
|
|||
* is
|
||||
* serviced.
|
||||
*/
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
} else {
|
||||
uint16_t elapsed; /* elapsed "counter time" */
|
||||
uint16_t remaining; /* remaing "counter time" */
|
||||
|
@ -499,7 +499,7 @@ void _timer_idle_exit(void)
|
|||
|
||||
if (_SysIdleElapsedTicks) {
|
||||
/* Announce elapsed ticks to the microkernel */
|
||||
nano_isr_stack_push(&K_Args, TICK_EVENT);
|
||||
nano_isr_stack_push(&_k_command_stack, TICK_EVENT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ extern char _k_server_stack[]; /* generated by SYSGEN */
|
|||
*/
|
||||
uint32_t _k_task_priority_bitmap[2] = {0, (1u << 31)};
|
||||
|
||||
struct nano_stack __noinit K_Args;
|
||||
struct nano_stack __noinit _k_command_stack;
|
||||
|
||||
|
||||
#ifdef CONFIG_TASK_DEBUG
|
||||
|
@ -87,7 +87,7 @@ void kernel_init(void)
|
|||
#ifdef CONFIG_INIT_STACKS
|
||||
k_memset((char *)_k_server_command_stack_storage, 0xaa, sizeof(_k_server_command_stack_storage));
|
||||
#endif
|
||||
nano_stack_init(&K_Args, _k_server_command_stack_storage);
|
||||
nano_stack_init(&_k_command_stack, _k_server_command_stack_storage);
|
||||
|
||||
task_fiber_start((char *)_k_server_stack,
|
||||
K_StackSize,
|
||||
|
|
|
@ -49,5 +49,5 @@ void K_taskcall(struct k_args *cmdpacket)
|
|||
{
|
||||
cmdpacket->alloc = false;
|
||||
_k_current_task->Args = cmdpacket;
|
||||
nano_task_stack_push(&K_Args, (uint32_t)cmdpacket);
|
||||
nano_task_stack_push(&_k_command_stack, (uint32_t)cmdpacket);
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ extern K_TIMER *_k_timer_list_tail;
|
|||
#endif
|
||||
extern int64_t _k_sys_clock_tick_count;
|
||||
|
||||
extern struct nano_stack K_Args;
|
||||
extern struct nano_stack _k_command_stack;
|
||||
extern struct nano_lifo LinkIn[6];
|
||||
extern struct nano_lifo LinkOut[6];
|
||||
extern struct nano_lifo K_DataFree;
|
||||
|
@ -249,6 +249,6 @@ extern void wlMonitorCalibrate(void);
|
|||
|
||||
#define TO_ALIST(L, A) _Cpsh((L), (uint32_t)(A))
|
||||
|
||||
#define SENDARGS(A) _Cpsh(&K_Args, (uint32_t)(A))
|
||||
#define SENDARGS(A) _Cpsh(&_k_command_stack, (uint32_t)(A))
|
||||
|
||||
#endif
|
||||
|
|
|
@ -295,5 +295,5 @@ FUNC_ALIAS(isr_event_send, fiber_event_send, void);
|
|||
void isr_event_send(kevent_t event /* event to signal */
|
||||
)
|
||||
{
|
||||
nano_isr_stack_push(&K_Args, (uint32_t)event);
|
||||
nano_isr_stack_push(&_k_command_stack, (uint32_t)event);
|
||||
}
|
||||
|
|
|
@ -884,7 +884,7 @@ int _task_mbox_data_get_async_block(struct k_msg *message,
|
|||
__ASSERT_NO_MSG(NULL == Writer->Forw);
|
||||
|
||||
Writer->Args.m1.mess.tx_block.poolid = (uint32_t)(-1);
|
||||
nano_task_stack_push(&K_Args, (uint32_t)Writer);
|
||||
nano_task_stack_push(&_k_command_stack, (uint32_t)Writer);
|
||||
|
||||
#ifdef ACTIV_ASSERTS
|
||||
struct k_args *Dummy;
|
||||
|
|
|
@ -221,7 +221,7 @@ void K_Defrag(struct k_args *A)
|
|||
GETARGS(NewGet);
|
||||
*NewGet = *A;
|
||||
NewGet->Comm = GET_BLOCK_WAIT;
|
||||
TO_ALIST(&K_Args, NewGet); /*push on command stack */
|
||||
TO_ALIST(&_k_command_stack, NewGet); /*push on command stack */
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -645,7 +645,7 @@ void K_RelBlock(struct k_args *A)
|
|||
GETARGS(NewGet);
|
||||
*NewGet = *A;
|
||||
NewGet->Comm = GET_BLOCK_WAIT;
|
||||
TO_ALIST(&K_Args, NewGet); /* push on command stack */
|
||||
TO_ALIST(&_k_command_stack, NewGet); /* push on command stack */
|
||||
}
|
||||
if (A->alloc) {
|
||||
FREEARGS(A);
|
||||
|
|
|
@ -581,7 +581,7 @@ void isr_sem_give(ksem_t sema, /* semaphore to signal */
|
|||
pCommand->Comm = SIGNALS;
|
||||
pCommand->Args.s1.sema = sema;
|
||||
|
||||
nano_isr_stack_push(&K_Args, (uint32_t)pCommand);
|
||||
nano_isr_stack_push(&_k_command_stack, (uint32_t)pCommand);
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
|
|
@ -172,7 +172,7 @@ void force_timeout(struct k_args *A)
|
|||
|
||||
if (T->Ti != -1) {
|
||||
delist_timer(T);
|
||||
TO_ALIST(&K_Args, A);
|
||||
TO_ALIST(&_k_command_stack, A);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ static inline void _HandleExpiredTimers(int ticks)
|
|||
} else {
|
||||
T->Ti = -1;
|
||||
}
|
||||
TO_ALIST(&K_Args, T->Args);
|
||||
TO_ALIST(&_k_command_stack, T->Args);
|
||||
|
||||
ticks = 0; /* don't decrement Ti for subsequent timer(s) */
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ FUNC_NORETURN void K_swapper(int parameter1, /* not used */
|
|||
|
||||
while (1) { /* forever */
|
||||
pArgs = (struct k_args *)nano_fiber_stack_pop_wait(
|
||||
&K_Args); /* will schedule */
|
||||
&_k_command_stack); /* will schedule */
|
||||
do {
|
||||
kevent_t event;
|
||||
/* if event < K_max_eventnr, it's a well-known event */
|
||||
|
@ -113,7 +113,7 @@ FUNC_NORETURN void K_swapper(int parameter1, /* not used */
|
|||
if (_NanoKernel.fiber) {
|
||||
fiber_yield();
|
||||
}
|
||||
} while (nano_fiber_stack_pop(&K_Args, (void *)&pArgs));
|
||||
} while (nano_fiber_stack_pop(&_k_command_stack, (void *)&pArgs));
|
||||
|
||||
/*
|
||||
* Always check higher priorities (lower numbers) first.
|
||||
|
|
Loading…
Reference in a new issue