nano_stack: rename 'proc' field to 'fiber'

The 'proc' name was a remnant of legacy naming.

Change-Id: I1ee47e47728e4bd927d7fe2284f72ace6b9aebc6
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2015-05-08 10:45:30 -04:00 committed by Anas Nashif
commit 79a1e38f20
2 changed files with 7 additions and 7 deletions

View file

@ -63,7 +63,7 @@ struct nano_fifo {
};
struct nano_stack {
tCCS *proc;
tCCS *fiber;
uint32_t *base;
uint32_t *next;
};

View file

@ -73,7 +73,7 @@ void nano_stack_init(
)
{
stack->next = stack->base = data;
stack->proc = (tCCS *)0;
stack->fiber = (tCCS *)0;
}
#ifdef CONFIG_MICROKERNEL
@ -118,9 +118,9 @@ void _stack_push_non_preemptible(
imask = irq_lock_inline();
ccs = stack->proc;
ccs = stack->fiber;
if (ccs) {
stack->proc = 0;
stack->fiber = 0;
fiberRtnValueSet(ccs, data);
_insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
} else {
@ -152,9 +152,9 @@ void nano_task_stack_push(
imask = irq_lock_inline();
ccs = stack->proc;
ccs = stack->fiber;
if (ccs) {
stack->proc = 0;
stack->fiber = 0;
fiberRtnValueSet(ccs, data);
_insert_ccs((tCCS **)&_NanoKernel.fiber, ccs);
_Swap(imask);
@ -240,7 +240,7 @@ uint32_t nano_fiber_stack_pop_wait(
imask = irq_lock_inline();
if (stack->next == stack->base) {
stack->proc = _NanoKernel.current;
stack->fiber = _NanoKernel.current;
data = (uint32_t)_Swap(imask);
} else {
stack->next--;