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:
parent
05c9dd08b0
commit
fed3331c9f
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue