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/06/06 17:54:10 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 opened a new issue #1208: Does it still true to set the LSB of entry point to 1 manually for NXFLAT?

xiaoxiang781216 opened a new issue #1208:
URL: https://github.com/apache/incubator-nuttx/issues/1208


   nuttx/arch/arm/src/armv7-m/arm_initialstate.c:
   ```
   #ifdef CONFIG_NXFLAT
     /* Make certain that bit 0 is set in the main entry address.  This is
      * only an issue when NXFLAT is enabled.  NXFLAT doesn't know anything
      * about thumb; the addresses that NXFLAT sets are based on file header
      * info and won't have bit 0 set.
      */
   
     tcb->entry.main = (main_t)((uint32_t)tcb->entry.main | 1);
   #endif
   ```
   I can't understand how we can pass the funtion pointer in other cases without this hack? Why only the task/thread entry pointer need do this?
   @patacongo could you give some history information?


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