u7k4rs6 commented on PR #21719: URL: https://github.com/apache/nuttx/pull/21719#issuecomment-6911844116
I don't think Rust can get it right, since the initializer depends on Kconfig. The non-zero part starts at byte 16 on sim:nsh, 0 with DEFAULT_SMALL, and 8 if MUTEX_TYPES is on too (halved on 32-bit), and the flags change with PRIORITY_INHERITANCE. If we moved the mutex to the front of pthread_mutex_s, Rust could hardcode it though. Would you prefer that? -- 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]
