From fed3331c9f05696c9d2c196740af80691524dd81 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Tue, 13 Jun 2017 08:30:49 -0700 Subject: [PATCH] mpu_stack_guard_test: use k_thread_create() Issue: ZEP-2270 Signed-off-by: Andrew Boie --- samples/mpu_stack_guard_test/src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/mpu_stack_guard_test/src/main.c b/samples/mpu_stack_guard_test/src/main.c index 2d45cfe71ee..53b6195be40 100644 --- a/samples/mpu_stack_guard_test/src/main.c +++ b/samples/mpu_stack_guard_test/src/main.c @@ -28,6 +28,7 @@ struct stack_guard_buffer { }; struct stack_guard_buffer buf; +struct k_thread test_thread; u32_t recursive_loop(u32_t counter) { @@ -65,6 +66,6 @@ void main(void) printk("Canary Initial Value = 0x%x\n", buf.canary); /* spawn stack_guard_thread */ - k_thread_spawn(buf.stack, STACKSIZE, stack_guard_thread, NULL, NULL, - NULL, PRIORITY, 0, K_NO_WAIT); + k_thread_create(&test_thread, buf.stack, STACKSIZE, stack_guard_thread, + NULL, NULL, NULL, PRIORITY, 0, K_NO_WAIT); }