mpu_stack_guard_test: use k_thread_create()

Issue: ZEP-2270
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-06-13 08:30:49 -07:00 committed by Kumar Gala
commit fed3331c9f

View file

@ -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);
}