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/06/01 13:53:22 UTC

[GitHub] [incubator-nuttx] patacongo commented on pull request #3626: libc: Move pthread stuff to userspace

patacongo commented on pull request #3626:
URL: https://github.com/apache/incubator-nuttx/pull/3626#issuecomment-852143714


   >     1. Move pthread_exit & pthread_create to USERSPACE to unify the convention that how to drop to userspace from kernel side like this:
   >        `regs[REG_EPC]      = (uintptr_t)USERSPACE->pthread_startup`
   >        `regs[REG_EPC]      = (uintptr_t)USERSPACE->pthread_exit`
   
   This part I don't understand.  That doesn't unify the designs, it makes them different:  There is no USERSPACE in KERNEL mode.  I don't understand why this is a good thing.


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