anchao commented on pull request #5645:
URL: https://github.com/apache/incubator-nuttx/pull/5645#issuecomment-1055013498


   
   > I tried this PR with my latest imx6-netknsh branches 
(https://github.com/masayuki2009/incubator-nuttx/tree/imx6-netknsh 
https://github.com/masayuki2009/incubator-nuttx-apps/tree/imx6-netknsh) and 
found that init and hello work but getprime fails when it exits.
   
   
   @masayuki2009 san,
   
   I can reproduce this issue on your branch but without this PR, seems some 
wrong with syscall clock_gettime:
   
   
   ```
   apps$ git diff .
   diff --git a/testing/getprime/getprime_main.c 
b/testing/getprime/getprime_main.c
   index 7d6b730aa..d0cbd7e10 100644
   --- a/testing/getprime/getprime_main.c
   +++ b/testing/getprime/getprime_main.c
   @@ -181,9 +181,9 @@ int main(int argc, FAR char *argv[])
          ASSERT(0 < n && n <= MAX_THREADS);
        }
    
   -  (void)clock_gettime(CLOCK_REALTIME, &ts0);
   +  //(void)clock_gettime(CLOCK_REALTIME, &ts0);
      get_prime_in_parallel(n);
   -  (void)clock_gettime(CLOCK_REALTIME, &ts1);
   +  //(void)clock_gettime(CLOCK_REALTIME, &ts1);
    
      elapsed  = (((uint64_t)ts1.tv_sec * NSEC_PER_SEC) + ts1.tv_nsec);
      elapsed -= (((uint64_t)ts0.tv_sec * NSEC_PER_SEC) + ts0.tv_nsec);
   
   ```
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to