Closed georgekang closed 9 years ago
Eventually, we should provide our own libl4 or libposix (POSIX compatibility layer) rather than rework the complicated implementation taken from L4Ka::Pistachio.
Yes, create_thread
should be only used internally to avoid confusion with the incidence.
This issue is no longer valid since pager was introduced to manage the whole thread creation and address space.
There should be a uniform definition of "create_thread".
Now, we have two "create_thread". It lets me confused.
static L4_ThreadId_t __USER_TEXT create_thread(user_struct _user, void (_func)(void));
L4_ThreadId_t __USER_TEXT create_thread(void (*func)(void), bool new_space, int cpu, L4_Word_t spacectrl);