summaryrefslogtreecommitdiff
path: root/scripts/sysgen
diff options
context:
space:
mode:
authorPeter Mitsis <peter.mitsis@windriver.com>2016-10-11 12:06:25 -0400
committerBenjamin Walsh <benjamin.walsh@windriver.com>2016-10-17 17:52:33 +0000
commitb2fd5be4dcad7e811c82182cb85a4a3883a50387 (patch)
treefa7920dcbc593664b3328f8299b4e2ff6f26db29 /scripts/sysgen
parent41a4caadfc756773c77df484501ecb68b3ba68ea (diff)
unified: Rework K_THREAD_DEFINE()
K_THREAD_DEFINE() can no longer specify a thread group. However, it now accepts a 'delay' parameter just as k_thread_spawn() does. To create a statically defined thread that may belong to one or more thread groups the new internal _MDEF_THREAD_DEFINE() macro is used. It is only used for legacy purposes. Threads can not both have a delayed start AND belong to a thread group. Jira: ZEP-916 Change-Id: Ia6e59ddcb4fc68f1f60f9c6b0f4f227f161ad1bb Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
Diffstat (limited to 'scripts/sysgen')
-rwxr-xr-xscripts/sysgen2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sysgen b/scripts/sysgen
index b05acb0a1..8d9cce32c 100755
--- a/scripts/sysgen
+++ b/scripts/sysgen
@@ -448,7 +448,7 @@ def kernel_main_c_tasks_unified():
kernel_main_c_out("EXTERN_C void %s(void);\n" % abort)
kernel_main_c_out(
- "K_THREAD_DEFINE(%s, %u, %s, %s, %s, %s, %s, %d, 0x%x);\n" %
+ "_MDEF_THREAD_DEFINE(%s, %u, %s, %s, %s, %s, %s, %d, 0x%x);\n" %
(name, int(stack_size), entry,
params[0], params[1], params[2],
abort, int(prio), int(groups)))