patacongo commented on a change in pull request #789: Add RISC-V FPU support
URL: https://github.com/apache/incubator-nuttx/pull/789#discussion_r408345720
 
 

 ##########
 File path: arch/risc-v/src/common/up_initialize.c
 ##########
 @@ -113,6 +116,13 @@ void up_initialize(void)
 
   up_addregion();
 
+  /* Initialize the idle task stack info */
+
+  idle = this_task(); /* It should be idle task */
+  idle->stack_alloc_ptr = _END_BSS;
+  idle->adj_stack_ptr   = (FAR void *)g_idle_topstack;
+  idle->adj_stack_size  = CONFIG_IDLETHREAD_STACKSIZE;
+
 
 Review comment:
   TizenRT implemented this by forcing all architectures to following the same 
pattern: 
https://github.com/Samsung/TizenRT/blob/master/os/kernel/init/os_start.c#L369
   
   But they do not support very many architectures.  For NuttX, most but not 
all architectures follow this pattern as described in the TODO list.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to