summaryrefslogtreecommitdiff
path: root/scripts/sysgen
diff options
context:
space:
mode:
authorBenjamin Walsh <benjamin.walsh@windriver.com>2015-08-17 16:27:31 -0400
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:15:27 -0500
commitbed144b179c13615da311a4345c8ec1c91f28e8e (patch)
tree6a6029dda4a16d0caac88712f14a74ee2c69e082 /scripts/sysgen
parentc45fc0495266eaa394a4a58c9c1bdbfaaa066aba (diff)
microkernel: rename k_proc to k_task
k_proc was a legacy leftover that does not make any sense, since there is no concept of a "process" in the system. Rather, that data structure refers to a 'task control block', i.e. the representation of a task execution context from the microkernel's point-of-view (not to confuse with the 'struct ccs', the representation of a thread execution context, from the nanokernel's point-of-view). Change-Id: Ic29db565af023be629ce740bbcb652ece7dc359f Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
Diffstat (limited to 'scripts/sysgen')
-rwxr-xr-xscripts/sysgen10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/sysgen b/scripts/sysgen
index b79785896..3f9fad7f3 100755
--- a/scripts/sysgen
+++ b/scripts/sysgen
@@ -400,7 +400,7 @@ def kernel_main_c_tasks():
group_bitmask ^= group_dictionary['SYS']
kernel_main_c_out(
- "struct k_proc %s " % (obj_name)+
+ "struct k_task %s " % (obj_name)+
"__section(_k_task_list, public, task) =\n" +
" {NULL, NULL, %d, (ktask_t)&%s,\n" % (prio, obj_name) +
" 0x00000001, %#010x,\n" % (group_bitmask) +
@@ -408,7 +408,7 @@ def kernel_main_c_tasks():
" (taskabortfunction)NULL, NULL};\n")
kernel_main_c_out(
- "struct k_proc _k_task_idle " +
+ "struct k_task _k_task_idle " +
"__section(_k_task_list, idle, task) =\n" +
" {NULL, NULL, %d, 0x00000000,\n" % (num_prios - 1) +
" 0x00000000, 0x00000000,\n" +
@@ -419,7 +419,7 @@ def kernel_main_c_tasks():
# currently scheduled task (idle task)
kernel_main_c_out("\n" +
- "struct k_proc * _k_current_task = &_k_task_idle;\n")
+ "struct k_task * _k_current_task = &_k_task_idle;\n")
def kernel_main_c_priorities():
@@ -436,7 +436,7 @@ def kernel_main_c_priorities():
"{\n")
for i in range(1, num_prios):
kernel_main_c_out(
- " {NULL, (struct k_proc *)&_k_task_priority_list[%d]},\n" %
+ " {NULL, (struct k_task *)&_k_task_priority_list[%d]},\n" %
(i - 1))
kernel_main_c_out(
" {&_k_task_idle, &_k_task_idle}\n" +
@@ -957,7 +957,7 @@ def generate_zephyr_h_obj_ids():
for task in task_list:
name = task[0];
zephyr_h_data += \
- "extern struct k_proc _k_task_obj_%s;\n" % (name) + \
+ "extern struct k_task _k_task_obj_%s;\n" % (name) + \
"#define %s ((ktask_t)&_k_task_obj_%s)\n" % (name, name)