From 7406abbc5ac56892524846c8a19d2aabfc34eef4 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 21 Mar 2013 23:37:11 +0000 Subject: Corrections needed after further test of stack-based task arguments git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5771 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/rgmp/src/nuttx.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'nuttx/arch/rgmp/src') diff --git a/nuttx/arch/rgmp/src/nuttx.c b/nuttx/arch/rgmp/src/nuttx.c index f218b3f18..da67ac214 100644 --- a/nuttx/arch/rgmp/src/nuttx.c +++ b/nuttx/arch/rgmp/src/nuttx.c @@ -189,6 +189,12 @@ FAR void *up_stack_frame(FAR struct tcb_s *tcb, size_t frame_size) tcb->adj_stack_ptr = (FAR void *)topaddr; tcb->adj_stack_size -= frame_size; + /* Reset the initial state */ + + up_initial_state(tcb); + + /* And return a pointer to the allocated memory region */ + return (FAR void *)(topaddr + sizeof(uint32_t)); } #endif -- cgit v1.2.3