From c009a05421f9c1c4beaa786580141608b3ae381b Mon Sep 17 00:00:00 2001 From: Kelvin Lawson Date: Fri, 21 Sep 2012 01:34:09 +0100 Subject: [PATCH] Use new atomThreadCreate() API with stack-alignment mods. --- platforms/qemu_integratorcp/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/qemu_integratorcp/main.c b/platforms/qemu_integratorcp/main.c index 3222170..45b39d7 100644 --- a/platforms/qemu_integratorcp/main.c +++ b/platforms/qemu_integratorcp/main.c @@ -78,7 +78,7 @@ 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[(TEST_STACK_BYTE_SIZE) - sizeof(unsigned int)], TEST_STACK_BYTE_SIZE - sizeof(unsigned int)); + atomThreadCreate ((ATOM_TCB *)&test_tcb, TEST_THREAD_PRIO, test_thread, 0, &test_stack[0], TEST_STACK_BYTE_SIZE); atomOSStart() ; return 0 ;