You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/04/14 18:05:18 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #789: Add RISC-V FPU support

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

 ##########
 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:
   Sure, I will provide a patch to apply the similar change to other arch tomorrow.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services