From f5de0d76aeb6b05e49c4c868a80e47533fbe16af Mon Sep 17 00:00:00 2001 From: Kelvin Lawson Date: Fri, 21 Sep 2012 01:52:21 +0100 Subject: [PATCH] ARM main.c: Use new thread creation APIs. --- platforms/qemu_integratorcp/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/qemu_integratorcp/main.c b/platforms/qemu_integratorcp/main.c index 45b39d7..6ebecbd 100644 --- a/platforms/qemu_integratorcp/main.c +++ b/platforms/qemu_integratorcp/main.c @@ -77,8 +77,8 @@ main (void) printf ("atomthreads starting %s... ", ATOMTHREADS_TEST) ; - atomOSInit(&idle_stack[IDLE_STACK_BYTE_SIZE - sizeof(unsigned int)], IDLE_STACK_BYTE_SIZE - sizeof(unsigned int)) ; - atomThreadCreate ((ATOM_TCB *)&test_tcb, TEST_THREAD_PRIO, test_thread, 0, &test_stack[0], TEST_STACK_BYTE_SIZE); + atomOSInit(&idle_stack[0], IDLE_STACK_BYTE_SIZE, TRUE) ; + atomThreadCreate ((ATOM_TCB *)&test_tcb, TEST_THREAD_PRIO, test_thread, 0, &test_stack[0], TEST_STACK_BYTE_SIZE, FALSE); atomOSStart() ; return 0 ;