xiaoxiang781216 commented on PR #11207:
URL: https://github.com/apache/nuttx/pull/11207#issuecomment-1817446997

   > @anjiahao1
   > 
   > > tcbinfo:remove total_num form tcbinfo. Can solve Mac os alignment problem
   > 
   > Did you test this PR on the M1/M2 Mac, as reported in #11087
   
   We don't have M1/M2 Mac to try this patch, the fix base on the link error:
   ```
   ld: warning: pointer not aligned at address 0x10006C5D2 ('_g_tcbinfo' + 18 
from nuttx.rel)
   ld: unaligned pointer(s) for architecture arm64
   clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
   ```
   18 is the offset of reg_off field in old tcbinfo_s. With this patch, the 
offset change to 16 which should satisfy the alignment requirement.


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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to