f9micro / f9-kernel

An efficient and secure microkernel built for ARM Cortex-M cores, inspired by L4
Other
682 stars 145 forks source link

ambiguous user space function create_thread #91

Closed georgekang closed 9 years ago

georgekang commented 10 years ago

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

jserv commented 10 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.

jserv commented 9 years ago

This issue is no longer valid since pager was introduced to manage the whole thread creation and address space.