Rename microkernel struct field 'fstart' to 'fn_start'.
Rename field 'fstart' of the struct: - 'k_proc' in the file include/microkernel/base_api.h Also rename variable instances related to this struct field. Change-Id: Ic9750c0bcaefd1dcedfefe94b8cdd31519ab5249 Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
This commit is contained in:
parent
36d55187f2
commit
71da62594c
3 changed files with 7 additions and 7 deletions
|
@ -112,7 +112,7 @@ struct k_task {
|
||||||
ktask_t id;
|
ktask_t id;
|
||||||
uint32_t state;
|
uint32_t state;
|
||||||
uint32_t group;
|
uint32_t group;
|
||||||
void (*fstart)(void);
|
void (*fn_start)(void);
|
||||||
char *workspace;
|
char *workspace;
|
||||||
int worksize;
|
int worksize;
|
||||||
void (*fabort)(void);
|
void (*fabort)(void);
|
||||||
|
|
|
@ -110,16 +110,16 @@ extern void task_group_leave(uint32_t groups);
|
||||||
* @param priority Priority of task.
|
* @param priority Priority of task.
|
||||||
* @param state State of task.
|
* @param state State of task.
|
||||||
* @param groups Groups this task belong to.
|
* @param groups Groups this task belong to.
|
||||||
* @param fstart Entry function.
|
* @param fn_start Entry function.
|
||||||
* @param workspace Pointer to workspace (aka, stack).
|
* @param workspace Pointer to workspace (aka, stack).
|
||||||
* @param worksize Size of workspace.
|
* @param worksize Size of workspace.
|
||||||
* @param fabort Abort function.
|
* @param fabort Abort function.
|
||||||
*/
|
*/
|
||||||
#define __K_TASK_INITIALIZER(ident, priority, state, groups, \
|
#define __K_TASK_INITIALIZER(ident, priority, state, groups, \
|
||||||
fstart, workspace, worksize, fabort) \
|
fn_start, workspace, worksize, fabort) \
|
||||||
{ \
|
{ \
|
||||||
NULL, NULL, priority, ident, state, ((groups) ^ SYS), \
|
NULL, NULL, priority, ident, state, ((groups) ^ SYS), \
|
||||||
fstart, workspace, worksize, fabort, NULL, \
|
fn_start, workspace, worksize, fabort, NULL, \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -333,7 +333,7 @@ void _k_task_op(struct k_args *A)
|
||||||
|
|
||||||
switch (A->Args.g1.opt) {
|
switch (A->Args.g1.opt) {
|
||||||
case TASK_START:
|
case TASK_START:
|
||||||
start_task(X, X->fstart);
|
start_task(X, X->fn_start);
|
||||||
break;
|
break;
|
||||||
case TASK_ABORT:
|
case TASK_ABORT:
|
||||||
abort_task(X);
|
abort_task(X);
|
||||||
|
@ -400,7 +400,7 @@ void _k_task_group_op(struct k_args *A)
|
||||||
if (X->group & grp) {
|
if (X->group & grp) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case TASK_GROUP_START:
|
case TASK_GROUP_START:
|
||||||
start_task(X, X->fstart);
|
start_task(X, X->fn_start);
|
||||||
break;
|
break;
|
||||||
case TASK_GROUP_ABORT:
|
case TASK_GROUP_ABORT:
|
||||||
abort_task(X);
|
abort_task(X);
|
||||||
|
@ -599,6 +599,6 @@ void task_entry_set(ktask_t task, /* task */
|
||||||
{
|
{
|
||||||
struct k_task *X = (struct k_task *)task;
|
struct k_task *X = (struct k_task *)task;
|
||||||
|
|
||||||
X->fstart = func;
|
X->fn_start = func;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue