xiaoxiang781216 commented on a change in pull request #1369:
URL: https://github.com/apache/incubator-nuttx/pull/1369#discussion_r487430617



##########
File path: arch/arm/src/arm/arm_initialstate.c
##########
@@ -52,13 +52,7 @@
  * Pre-processor Definitions
  ****************************************************************************/
 
-/****************************************************************************
- * Private Data
- ****************************************************************************/
-
-/****************************************************************************
- * Private Functions
- ****************************************************************************/
+#define IDLETHREAD_STACKMARGIN    128

Review comment:
       > I may not understand what you are saying, I may be busy. I am not 
ignoring you or making a negative statement.
   
   Let me give you an example:
   
https://github.com/apache/incubator-nuttx/blob/master/arch/avr/src/avr/up_checkstack.c#L97
   
https://github.com/apache/incubator-nuttx/blob/master/arch/avr/src/avr/up_createstack.c#L198
   
https://github.com/apache/incubator-nuttx/blob/master/arch/avr/src/common/up_internal.h#L69
   Please tell me what's wrong avr colorize the stack with memset and how your 
approach handle this case? I aks the same question two months ago, this is a 
key reason why I don't take your approach initially. Here is a capture:
   
![image](https://user-images.githubusercontent.com/18066964/93001188-dc016a80-f55f-11ea-88f8-30b0847798bc.png)
   Could you answer my question?
   
   > 
   > I am letting you know you will break working code if make the change 
across the all the ARCHs of the system. We have had that happen before.
   
   The system is already in broken state now, all arch which forget to set idle 
thread info can't boot into shell if they match:
   1.Enable CONFIG_RTC
   2.Enable CONFIG_LIBC_LOCALTIME
   We found this issue on simulator two months ago, the problem is still there, 
no any progress!




----------------------------------------------------------------
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:
[email protected]


Reply via email to