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 2021/07/22 23:28:45 UTC

[GitHub] [incubator-nuttx] patacongo edited a comment on issue #4206: mksyscall need handle 64bit type correctly

patacongo edited a comment on issue #4206:
URL: https://github.com/apache/incubator-nuttx/issues/4206#issuecomment-884916207


   On 64-bit platforms, I believe that both uintptr_t and off_t are 64-bits.  But I am not sure of that.  Need to check.  These combinations are OK in the current code:
   
   - uintptr_t 32-bits, off_t 32-bits
   - uintptr_t 64-bits, off_t 32-bits (we shouldn't really support this)
   - uintptr_t 64-bits, off_t 64 bits.
   
   This is not OK.
   
   - uintptr_t 32-bits, off_t 64-bits.
   
   And what about these (not currently a problem because they do not currently support syscalls):
   
   - 8-bit architectures that usually have 16-bit uintptr_t
   - eZ80 that has a 24-bit uintptr_t
   


-- 
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-unsubscribe@nuttx.apache.org

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